Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8f9c20b

Browse files
committed
merge with 3.3.4 releasing repo
2 parents 72e7761 + a37fcb2 commit 8f9c20b

15 files changed

Lines changed: 300 additions & 152 deletions

File tree

.hgtags

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,3 +118,5 @@ d047928ae3f6314a13b6137051315453d0ae89b6 v3.3.2
118118
fd53c500f8b80f54f3ecedec9da2e8c7e52a6888 v3.3.3rc1
119119
d32442c0e60dfbd71234e807d3d1dedd227495a9 v3.3.3rc2
120120
c3896275c0f61b2510a6c7e6c458a750359a91b8 v3.3.3
121+
fa92f5f940c6c0d839d7f0611e4b717606504a3c v3.3.4rc1
122+
7ff62415e4263c432c8acf6e424224209211eadb v3.3.4

.hgtouch

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
Python/importlib.h: Lib/importlib/_bootstrap.py Modules/_freeze_importlib.c
66

77
Include/ast.h: Parser/Python.asdl Parser/asdl.py Parser/asdl_c.py
8-
Python/Python-ast.c: Include/ast.h
8+
Include/Python-ast.h: Include/ast.h
9+
Python/Python-ast.c: Include/Python-ast.h
910

1011
Python/opcode_targets.h: Python/makeopcodetargets.py Lib/opcode.py
1112

Doc/tools/sphinxext/susp-ignored.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,4 @@ whatsnew/changelog,,:PythonCmd,"With Tk < 8.5 _tkinter.c:PythonCmd() raised Unic
287287
whatsnew/changelog,,::,": Fix FTP tests for IPv6, bind to ""::1"" instead of ""localhost""."
288288
whatsnew/changelog,,::,": Use ""127.0.0.1"" or ""::1"" instead of ""localhost"" as much as"
289289
whatsnew/changelog,,:password,user:password
290+
whatsnew/changelog,,:gz,w:gz

Include/patchlevel.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
/*--start constants--*/
1919
#define PY_MAJOR_VERSION 3
2020
#define PY_MINOR_VERSION 3
21-
#define PY_MICRO_VERSION 3
21+
#define PY_MICRO_VERSION 4
2222
#define PY_RELEASE_LEVEL PY_RELEASE_LEVEL_FINAL
2323
#define PY_RELEASE_SERIAL 0
2424

2525
/* Version as a string */
26-
#define PY_VERSION "3.3.3+"
26+
#define PY_VERSION "3.3.4+"
2727
/*--end constants--*/
2828

2929
/* Version as a single 4-byte hex number, e.g. 0x010502B2 == 1.5.2b2.

Lib/distutils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# Updated automatically by the Python release process.
1414
#
1515
#--start constants--
16-
__version__ = "3.3.3"
16+
__version__ = "3.3.4"
1717
#--end constants--

Lib/idlelib/NEWS.txt

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
What's New in IDLE 3.3.4?
2+
=========================
3+
4+
- Issue #17390: Add Python version to Idle editor window title bar.
5+
Original patches by Edmond Burnett and Kent Johnson.
6+
7+
- Issue #18960: IDLE now ignores the source encoding declaration on the second
8+
line if the first line contains anything except a comment.
9+
10+
- Issue #20058: sys.stdin.readline() in IDLE now always returns only one line.
11+
12+
- Issue #19481: print() of string subclass instance in IDLE no longer hangs.
13+
14+
- Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
15+
shell window is present.
16+
17+
18+
What's New in IDLE 3.3.3?
19+
=========================
20+
21+
- Issue #18873: IDLE now detects Python source code encoding only in comment
22+
lines.
23+
24+
- Issue #18988: The "Tab" key now works when a word is already autocompleted.
25+
26+
- Issue #18489: Add tests for SearchEngine. Original patch by Phil Webster.
27+
28+
- Issue #18429: Format / Format Paragraph, now works when comment blocks
29+
are selected. As with text blocks, this works best when the selection
30+
only includes complete lines.
31+
32+
- Issue #18226: Add docstrings and unittests for FormatParagraph.py.
33+
Original patches by Todd Rovito and Phil Webster.
34+
35+
- Issue #18279: Format - Strip trailing whitespace no longer marks a file as
36+
changed when it has not been changed. This fix followed the addition of a
37+
test file originally written by Phil Webster (the issue's main goal).
38+
39+
- Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
40+
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
41+
42+
- Remove dead imports of imp.
43+
44+
- Issue #18196: Avoid displaying spurious SystemExit tracebacks.
45+
46+
- Issue #5492: Avoid traceback when exiting IDLE caused by a race condition.
47+
48+
- Issue #17511: Keep IDLE find dialog open after clicking "Find Next".
49+
Original patch by Sarah K.
50+
51+
- Issue #18055: Move IDLE off of imp and on to importlib.
52+
53+
- Issue #15392: Create a unittest framework for IDLE.
54+
Initial patch by Rajagopalasarma Jayakrishnan.
55+
See Lib/idlelib/idle_test/README.txt for how to run Idle tests.
56+
57+
- Issue #14146: Highlight source line while debugging on Windows.
58+
59+
- Issue #17532: Always include Options menu for IDLE on OS X.
60+
Patch by Guilherme Simões.
61+
62+
163
What's New in IDLE 3.3.2?
264
=========================
365

Lib/idlelib/idlever.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
IDLE_VERSION = "3.3.3"
1+
IDLE_VERSION = "3.3.4"

Lib/pydoc_data/topics.py

Lines changed: 74 additions & 74 deletions
Large diffs are not rendered by default.

Lib/smtplib.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
SMTP_SSL_PORT = 465
6363
CRLF = "\r\n"
6464
bCRLF = b"\r\n"
65+
_MAXLINE = 8192 # more than 8 times larger than RFC 821, 4.5.3
6566

6667
OLDSTYLE_AUTH = re.compile(r"auth=(.*)", re.I)
6768

@@ -364,7 +365,7 @@ def getreply(self):
364365
self.file = self.sock.makefile('rb')
365366
while 1:
366367
try:
367-
line = self.file.readline()
368+
line = self.file.readline(_MAXLINE + 1)
368369
except socket.error as e:
369370
self.close()
370371
raise SMTPServerDisconnected("Connection unexpectedly closed: "
@@ -374,6 +375,8 @@ def getreply(self):
374375
raise SMTPServerDisconnected("Connection unexpectedly closed")
375376
if self.debuglevel > 0:
376377
print('reply:', repr(line), file=stderr)
378+
if len(line) > _MAXLINE:
379+
raise SMTPResponseException(500, "Line too long.")
377380
resp.append(line[4:].strip(b' \t\r\n'))
378381
code = line[:3]
379382
# Check that the error code is syntactically correct.

Lib/test/mock_socket.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ class MockFile:
2121
"""
2222
def __init__(self, lines):
2323
self.lines = lines
24-
def readline(self):
25-
return self.lines.pop(0) + b'\r\n'
24+
def readline(self, limit=-1):
25+
result = self.lines.pop(0) + b'\r\n'
26+
if limit >= 0:
27+
# Re-insert the line, removing the \r\n we added.
28+
self.lines.insert(0, result[limit:-2])
29+
result = result[:limit]
30+
return result
2631
def close(self):
2732
pass
2833

0 commit comments

Comments
 (0)