cpython/Lib
R David Murray f1a40b4ec5 Merge: #5713: Handle 421 error codes during sendmail by closing the socket.
This is a partial fix to the issue of servers disconnecting unexpectedly; in
this case the 421 says they are disconnecting, so we close the socket and
return the 421 in the appropriate error context.

Original patch by Mark Sapiro, updated by Kushal Das, with additional
tests by me.
2013-03-20 21:12:17 -04:00
..
collections Issue #17331: Use isidentifier() instead of isalnum() to check for valid identifiers. 2013-03-01 23:43:48 -08:00
concurrent Merge 3.2, issue #17047: remove doubled words found in 2.7 to 2013-03-11 17:58:27 -04:00
ctypes Fix test_from_dll* in test_returnfuncptrs.py. 2013-02-07 14:59:25 +02:00
curses Fix docstring in curses (#16782) 2012-12-29 23:08:07 +02:00
dbm Close #13007: whichdb should recognize gdbm 1.9 magic numbers 2011-09-19 17:08:18 +02:00
distutils #11420: merge with 3.2. 2013-03-16 21:49:20 +02:00
email Merge: #17431: Fix missing import of BytesFeedParser in email.parser. 2013-03-15 20:42:29 -04:00
encodings Normalize whitespace 2012-06-16 22:50:54 +02:00
html #16245: Fix the value of a few entities in html.entities.html5. 2012-10-23 15:51:27 +02:00
http Reverting the changeset 5d76a4746d9d made for Issue #12921 2013-03-05 02:26:50 -08:00
idlelib Merge 3.2, issue #17047: remove doubled words found in 2.7 to 2013-03-11 17:58:27 -04:00
importlib #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters. 2013-03-16 19:48:51 +02:00
json Merge #16057: Clarify why the base method default is called in custom encoders. 2013-03-17 21:53:23 -04:00
lib2to3 Merge 3.2, issue #17047: remove doubled words found in 2.7 to 2013-03-11 17:58:27 -04:00
logging Issue #9501: Merged fix from 3.2. 2013-01-15 17:56:43 +00:00
msilib Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*, 2013-03-11 17:57:08 -04:00
multiprocessing Merge 2013-02-26 13:00:15 +00:00
plat-aix4
plat-darwin
plat-freebsd4
plat-freebsd5
plat-freebsd6
plat-freebsd7
plat-freebsd8
plat-generic - Issue #17031: Fix running regen in cross builds. 2013-01-25 18:45:12 +01:00
plat-linux Close #12326: sys.platform is now always 'linux' on Linux 2011-08-20 23:39:26 +02:00
plat-netbsd1
plat-next3
plat-os2emx
plat-sunos5 Merged revisions 78678,78680,78682 via svnmerge from 2010-03-05 03:33:11 +00:00
plat-unixware7
pydoc_data Update pydoc topics and suspicious markup file. 2012-08-25 12:14:59 +02:00
site-packages
sqlite3 Issue #14720: Enhance sqlite3 microsecond conversion, document its behavior 2013-02-26 21:45:09 +02:00
test Merge: #5713: Handle 421 error codes during sendmail by closing the socket. 2013-03-20 21:12:17 -04:00
tkinter Fix usage of the unittest.skip decorator. 2013-03-19 13:27:05 +02:00
turtledemo #12677: correct turtle orientation in doc 2011-08-07 17:12:19 +02:00
unittest Issue #17047: remove doubled words added in 3.3 2013-03-11 18:34:00 -04:00
urllib Issue #1285086: Get rid of the refcounting hack and speed up 2013-03-14 21:33:35 +02:00
venv Issue #16378: Updated docstrings to reflect the defaults present in the code. 2012-11-14 11:18:35 +00:00
wsgiref Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:27:37 +02:00
xml Issue #11367: fix documentation of some find* methods in ElementTree 2013-03-12 06:04:33 -07:00
xmlrpc Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:26:36 +02:00
__future__.py #14494: Document that absolute imports became default in 3.0 instead of 2.7. 2012-05-19 18:36:33 +03:00
__phello__.foo.py
_compat_pickle.py
_dummy_thread.py Issue #11223: Replace threading._info() by sys.thread_info 2011-04-30 14:53:09 +02:00
_markupbase.py #13576: add tests about the handling of (possibly broken) condcoms. 2011-12-19 07:29:03 +02:00
_osx_support.py Issue #13590: OS X Xcode 4 - improve support for universal extension modules 2013-01-31 01:28:23 -08:00
_pyio.py Merge 3.2, issue #17047: remove doubled words found in 2.7 to 2013-03-11 17:58:27 -04:00
_strptime.py Issue #1667546: On platforms supporting tm_zone and tm_gmtoff fields 2012-06-13 22:15:26 -04:00
_threading_local.py Issue #9707: Rewritten reference implementation of threading.local which 2010-09-07 22:06:17 +00:00
_weakrefset.py Issue #14195: Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive. 2012-03-04 22:15:38 -06:00
abc.py improve abstract property support (closes #11610) 2011-12-15 15:34:02 -05:00
aifc.py Issue #16485: Fix file descriptor not being closed if file header patching fails on closing of aifc file. 2012-12-29 22:36:23 +02:00
antigravity.py
argparse.py Merge 3.2 fix updates and tests for issue #15906. 2012-09-12 15:31:38 -04:00
ast.py remove ast.__version__ (closes #12273) 2011-07-15 21:10:13 -05:00
asynchat.py asynchat speedup improvement: avoid to use a function mimicking old buffer() builtin behavior; instead use plain slicing 2012-08-04 14:38:16 +02:00
asyncore.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:27:37 +02:00
base64.py Speed up base64.urlsafe_{en,de}code(). 2012-06-22 15:16:09 -07:00
bdb.py Have Bdb frame_returning in the finally clause 2012-05-01 10:46:59 +08:00
binhex.py remove unused imports (closes #12432) 2011-06-28 10:25:04 -05:00
bisect.py
bz2.py Issue #16304: Further optimize BZ2File.readlines?(). 2012-10-01 23:05:32 +02:00
calendar.py #15421: fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier. 2012-09-21 17:26:35 +03:00
cgi.py merge from 3.2 2013-01-23 03:00:26 -08:00
cgitb.py merge #12890: don't emit <p> tags in text mode when logdir specified. 2012-10-27 14:55:25 -04:00
chunk.py
cmd.py Issue 15337: help() shown as undocumented 2012-07-16 00:11:05 -07:00
code.py Issue #12643: Respect sys.excepthook in code.InteractiveConsole 2012-08-20 23:02:28 +10:00
codecs.py Issue16097 Fix small typo in comment (patch by Wael Al Jishi) 2012-10-01 16:40:40 +01:00
codeop.py
colorsys.py
compileall.py Clarify compileall command-line options (#10454). 2011-09-01 20:04:50 +02:00
configparser.py configparser: preserve section order when using __setitem__ (issue #16820) 2013-01-01 23:45:33 +01:00
contextlib.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:26:36 +02:00
copy.py #11572: improvements to copy module tests along with removal of old test suite 2011-08-05 23:05:35 +02:00
copyreg.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
cProfile.py Merged revisions 82805-82806,83523-83527,83536,83538,83542,83546-83548,83550-83555,83558,83560 via svnmerge from 2010-10-06 08:26:09 +00:00
crypt.py white space cleanup 2012-06-27 15:37:47 +02:00
csv.py #11565: Fix several typos. Patch by Piotr Kasprzyk. 2011-03-16 12:34:31 +02:00
datetime.py Closes #15973: fix a segmentation fault when comparing timezone objects. 2012-09-22 09:23:12 +02:00
decimal.py Issue #15783: Except for the number methods, the C version of decimal now 2012-12-15 22:33:33 +01:00
difflib.py Fix comment in difflib. 2011-12-10 13:02:17 +01:00
dis.py Issue #11823: disassembly now shows argument counts on calls with keyword args 2012-06-07 14:28:14 -04:00
doctest.py #14649: clarify DocTestSuite error when there are no docstrings. 2012-09-10 10:17:13 -04:00
dummy_threading.py
filecmp.py Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:20:21 +02:00
fileinput.py fileinput: replace this last occurence of codecs.open with builtins.open. 2011-11-07 19:43:07 +01:00
fnmatch.py Set cache sizes to a power-of-two 2013-02-17 01:33:37 -08:00
formatter.py Merged revisions 77310-77311 via svnmerge from 2010-08-02 00:24:26 +00:00
fractions.py Make Fraction(-1).__hash__() return -2 rather than -1 (see issue 10356). 2010-11-13 10:27:38 +00:00
ftplib.py Merge 3.2, issue #17047: remove doubled words found in 2.7 to 2013-03-11 17:58:27 -04:00
functools.py Sync-up with 3.4 to make maintenance easier. 2013-03-08 23:01:07 -08:00
genericpath.py Merged revisions 78018,78035-78040,78042-78043,78046,78048-78052,78054,78059,78075-78080 via svnmerge from 2010-03-14 10:23:39 +00:00
getopt.py Issue #11621: fix bootstrap issue with getopt/gettext (following d3e46930ffe9) 2011-03-21 16:04:06 +01:00
getpass.py Remove redundant imports. 2011-11-04 08:29:17 +01:00
gettext.py Implemented PEP 405 (Python virtual environments). 2012-05-26 03:45:29 +01:00
glob.py Issue #16695: Document how glob handles filenames starting with a dot 2013-02-23 19:53:27 +01:00
gzip.py Issue #1159051: GzipFile now raises EOFError when reading a corrupted file 2013-01-22 17:07:49 +02:00
hashlib.py Consistently raise a TypeError when a non str is passed to hashlib.new 2012-07-21 21:22:16 -07:00
heapq.py Fix typo 2013-03-05 02:11:10 -05:00
hmac.py Issue #15225: improve error message when hmac is passed a wrong key type. 2012-06-30 17:27:56 +02:00
imaplib.py Merge: #17443: Fix buffering in IMAP4_stream. 2013-03-19 13:56:01 -04:00
imghdr.py
imp.py Issue #16880: _imp.load_dynamic() is not defined on a platform that 2013-03-17 15:48:16 -07:00
inspect.py Issue #17071: Signature.bind() now works when one of the keyword arguments is named `self`. 2013-01-29 21:20:57 +01:00
io.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:27:37 +02:00
ipaddress.py Fix a few typos and a double semicolon. Patch by Eitan Adler. 2013-01-27 06:20:14 +02:00
keyword.py Fix instructions on how to rebuild some modules 2012-02-26 01:26:09 +01:00
linecache.py Issue #10335: Add tokenize.open(), detect the file encoding using 2010-11-09 01:08:59 +00:00
locale.py Issue #8767: Restore building with --disable-unicode. 2012-05-20 10:42:17 +02:00
lzma.py #15546: Fix {GzipFile,LZMAFile}.read1()'s handling of pathological input data. 2012-08-05 02:19:09 +02:00
macpath.py Merged revisions 84701,84784 via svnmerge from 2010-09-13 20:31:34 +00:00
macurl2path.py
mailbox.py #15222: Merge 3.2 2012-09-25 22:06:07 +03:00
mailcap.py Fix #9923: mailcap now uses the OS path separator for the MAILCAP envvar. Not backported, since it could break cases where people worked around the old POSIX-specific behaviour on non-POSIX platforms. 2011-08-28 00:17:31 +10:00
mimetypes.py #15199: Fix JavaScript's default MIME type to application/javascript 2012-08-20 21:30:03 +03:00
modulefinder.py Issue #16752: Add a missing import to modulefinder. 2012-12-22 19:34:21 -05:00
netrc.py fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
nntplib.py #1079: Fix parsing of encoded words. 2012-06-02 17:56:49 -04:00
ntpath.py Correction to f1509fc75435 - Issue #11583 2011-06-09 10:00:42 -05:00
nturl2path.py Fix Issue11474 - fix url2pathname() handling of '/C|/' on Windows 2011-04-14 13:16:30 +08:00
numbers.py Update docstring with more useful text (from the PEP) 2012-02-26 01:37:47 +01:00
opcode.py Issue #11823: disassembly now shows argument counts on calls with keyword args 2012-06-07 14:28:14 -04:00
optparse.py Merge 3.2 2011-10-28 14:52:29 +02:00
os.py Issue #15845: Fix comparison between bytes and string. 2013-01-08 11:36:54 +02:00
os2emxpath.py #9018: os.path.normcase() now raises a TypeError if the argument is not str or bytes. 2010-06-25 10:56:11 +00:00
pdb.py Merge issue #13120: Allow to call pdb.set_trace() from thread. 2012-12-04 21:10:20 +02:00
pickle.py Issue #12848: The pure Python pickle implementation now treats object lengths as unsigned 32-bit integers, like the C implementation does. 2012-11-24 20:41:34 +01:00
pickletools.py Merge 3.2 2011-12-13 13:22:42 -05:00
pipes.py Merge doc changes from 3.2 (#10454, #12298) 2011-09-02 00:03:20 +02:00
pkgutil.py replace threw with raised (#16714) 2012-12-19 22:54:47 +02:00
platform.py merge 3.2 2012-10-12 12:04:32 -04:00
plistlib.py #14835: Make plistlib output empty arrays & dicts like OS X 2012-05-29 12:04:54 +02:00
poplib.py Issue 11291: poplib suppresses errors on QUIT. 2011-02-25 22:28:24 +00:00
posixpath.py Fix posixpath.realpath() for multiple pardirs (fixes issue #6975). 2013-02-18 12:21:30 +02:00
pprint.py Issues #10017 and #14998: Fix TypeError using pprint on dictionaries with unorderable key. 2012-07-21 11:17:38 +02:00
profile.py Issue #14428: Use the new time.perf_counter() and time.process_time() functions 2012-04-29 03:01:20 +02:00
pstats.py #16303: remove extra quotes from exception and add (). Initial patch by Vladimir Rutsky. 2012-10-24 23:43:02 +03:00
pty.py Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF. 2012-02-16 00:40:03 -08:00
py_compile.py Issue #13645: pyc files now contain the size of the corresponding source 2012-01-13 18:52:16 +01:00
pyclbr.py #14798: pyclbr now raises ImportError instead of KeyError for missing packages 2012-05-18 21:59:49 +03:00
pydoc.py #17476: make allmethods actually return all methods. 2013-03-19 02:32:35 -04:00
queue.py Issue #14428, #14397: Implement the PEP 418 2012-04-29 02:41:27 +02:00
quopri.py convert shebang lines: python -> python3 2010-03-11 22:53:45 +00:00
random.py Issue #17141: random.vonmisesvariate() no more hangs for large kappas. 2013-02-10 19:29:20 +02:00
re.py Issue #16564: Fixed a performance regression relative to Python 3.1 in the 2013-03-16 22:53:48 +02:00
reprlib.py Avoid pulling threading when _thread is sufficient 2011-10-11 18:51:53 +02:00
rlcompleter.py Closes #14411: remove outdated comment in rlcompleter docstring. 2012-03-27 07:46:46 +02:00
runpy.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:27:37 +02:00
sched.py Issue #16165: Fix sched.scheduler.run() method was block a scheduler for 2012-12-29 21:34:11 +02:00
shelve.py #7905: Actually respect the keyencoding parameter to shelve.Shelf. 2010-12-04 11:12:43 +00:00
shlex.py Revert "Issue #16121: Fix line number accounting in shlex" 2013-02-23 23:12:35 +01:00
shutil.py #17076: Make copying of xattrs more permissive of missing FS support 2013-02-05 08:22:44 +01:00
site.py Issue #16519: Used os.path.abspath, removed unnecessary code for executable_name. 2012-11-23 19:16:49 +00:00
smtpd.py #8739: upgrade smtpd to RFC 5321 and 1870. 2012-05-26 14:33:59 -04:00
smtplib.py Merge: #5713: Handle 421 error codes during sendmail by closing the socket. 2013-03-20 21:12:17 -04:00
sndhdr.py Merged revisions 75407,75409-75413,75415,75419-75421 via svnmerge from 2010-08-03 03:19:00 +00:00
socket.py issue #879399 2012-12-25 13:04:50 +00:00
socketserver.py Merge with 3.2 : 2012-12-26 15:13:29 +00:00
sre_compile.py Issue #13169: The maximal repetition number in a regular expression has been 2013-02-16 16:54:33 +02:00
sre_constants.py Fix issue #13169: Reimport MAXREPEAT into sre_constants.py. 2013-02-18 11:14:21 +02:00
sre_parse.py Issue #13169: The maximal repetition number in a regular expression has been 2013-02-16 16:54:33 +02:00
ssl.py remove __del__ because it's evil and also prevents the ResourceWarning on the socket from happening (closes #16900) 2013-01-10 14:16:20 -06:00
stat.py #14807: move undocumented tarfile.filemode() to stat.filemode(). Add tarfile.filemode alias with deprecation warning. 2012-05-15 15:30:25 +02:00
string.py #13579: minimize code base drift for 'a' string.Formatter change. 2012-08-19 17:57:29 -04:00
stringprep.py
struct.py Issue #11081: Fixed struct.__all__. Reviewed by Georg Brandl. 2011-01-31 19:27:55 +00:00
subprocess.py Use a larger amount of data for tests such as the interrupted_write 2013-03-19 23:25:16 -07:00
sunau.py Issue #10265: Close file objects explicitly in sunau. Patch by Brian Brazil. 2010-10-31 21:27:04 +00:00
symbol.py update symbol.py for yield from grammar changes (closes #17132) 2013-02-05 10:12:14 -05:00
symtable.py
sysconfig.py Issue #13590: OS X Xcode 4 - improve support for universal extension modules 2013-01-31 01:28:23 -08:00
tabnanny.py #16478: use floor division in tabnanny and fix a ResourceWarning. Patch by Serhiy Storchaka. 2012-11-16 13:17:08 +02:00
tarfile.py Issue #16477: Close tarfile internal handlers in case of exception. 2012-11-29 14:22:26 +02:00
telnetlib.py Fixes Issue #14635: telnetlib will use poll() rather than select() when possible 2012-07-15 23:42:26 -07:00
tempfile.py Fix for issue #16800: Use buffered write to handle EINTR. 2013-02-13 00:59:53 +02:00
textwrap.py Close #13857: Added textwrap.indent() function (initial patch by Ezra 2012-06-11 23:07:51 +10:00
this.py
threading.py Fix #15567. collections.deque wasn't imported 2012-08-09 23:04:42 -05:00
timeit.py Add an option to timeit to use time.process_time() and mark -t and -c as deprecated. 2012-05-01 11:56:22 +02:00
token.py Issue #9260: A finer-grained import lock. 2012-05-17 18:55:59 +02:00
tokenize.py #16152: merge with 3.2. 2012-11-03 17:46:51 +02:00
trace.py #17143: fix a missing import in the trace module. Initial patch by Berker Peksag. 2013-02-15 21:20:50 +02:00
traceback.py Issue #16714: use 'raise' exceptions, don't 'throw'. 2012-12-18 21:27:37 +02:00
tty.py
turtle.py Merge 3.2, issue #17047: remove doubled words found in 2.7 to 2013-03-11 17:58:27 -04:00
types.py Eric Snow's implementation of PEP 421. 2012-06-03 16:18:47 -04:00
uu.py Merged revisions 86037 via svnmerge from 2010-10-31 16:17:36 +00:00
uuid.py Issue #15118: Change return value of os.uname() and os.times() from 2012-06-24 04:33:36 -07:00
warnings.py Closes #13258: Use callable() built-in in the standard library. 2011-10-28 14:45:05 +02:00
wave.py Closes #16461: Wave library should be able to deal with 4GB wav files, and sample rate of 44100 Hz. 2012-11-17 03:41:54 +01:00
weakref.py Issue #14159: Fix the len() of weak containers (WeakSet, WeakKeyDictionary, WeakValueDictionary) to return a better approximation when some objects are dead or dying. 2012-03-01 16:26:35 +01:00
webbrowser.py #15447: Use subprocess.DEVNULL in webbrowser, instead of opening 2012-09-03 12:44:29 -04:00
xdrlib.py Merge: change docstring for xdrlib.Error to use new style exceptions. 2012-11-01 13:43:31 +02:00
zipfile.py Refactor recently added bugfix into more testable code by using a 2013-02-03 00:36:32 -08:00