Commit Graph

68858 Commits

Author SHA1 Message Date
Gregory P. Smith 1f8a40b81d remove the long obsolete mention of universal newlines mode only being
available when configured at compile time.
2013-03-20 18:32:03 -07:00
R David Murray d312c740f1 #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 20:36:14 -04:00
Ezio Melotti 958f7ae865 #17493: re-enable a test on Windows. Patch by Zachary Ware. 2013-03-20 18:14:48 +02:00
Ezio Melotti 93115e0914 Fix usage of argument/parameter and markup. 2013-03-20 13:53:32 +02:00
Senthil Kumaran 2a4d24510a #17471 - Increasing the urllib.error test coverage. Bringing it to 100%. Based on patch contributed by Daniel Wozniak 2013-03-19 16:11:07 -07:00
Kristján Valur Jónsson ece12222ce Merge 2013-03-19 15:57:19 -07:00
Gregory P. Smith 1f1ec04c7f merge heads 2013-03-19 15:25:28 -07:00
Kristján Valur Jónsson 5aed330e37 Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.
2013-03-19 15:24:10 -07:00
R David Murray 14b0124a29 #1525919: Document MIMEText+set_payload encoding behavior. 2013-03-19 18:18:55 -04:00
Gregory P. Smith dd35162894 merge heads in 3.2 2013-03-19 15:03:26 -07:00
Senthil Kumaran 843fae9312 #17471 - Improve urllib2 test coverage. Patch contributed by Daniel Wozniak 2013-03-19 13:43:42 -07:00
R David Murray f5d7cc239e #8862: Fix curses cleanup with getchar is interrupted by a signal.
I have no idea how one would write a test for this.

Patch by July Tikhonov.
2013-03-19 16:23:09 -04:00
R David Murray fcb6d6a3b3 #17443: Fix buffering in IMAP4_stream.
In Python2 Popen uses *FILE objects, which wind up buffering even though
subprocess defaults to no buffering.  In Python3, subprocess streams really
are unbuffered by default, but the imaplib code assumes read is buffered.  This
patch uses the default buffer size from the io module to get buffered streams
from Popen.

Much debugging work and patch by Diane Trout.

The imap protocol is too complicated to write a test for this simple
change with our current level of test infrastructure.
2013-03-19 13:52:33 -04:00
Serhiy Storchaka ae4ef4d2ff Fix usage of the unittest.skip decorator. 2013-03-19 13:25:20 +02:00
Senthil Kumaran 0492ec07e0 #17460 - Adding relevant warning messages regarding strict removal in docs 2013-03-19 00:51:08 -07:00
R David Murray 9929bc543a #17476: make allmethods actually return all methods.
This fixes a regression relative to Python2.  (In 2, methods on a class were
unbound methods and matched the inspect queries being done, in 3 they are just
functions and so were missed).

This is an undocumented function that pydoc itself does not use, but
I found that numpy at least uses it in its documentation generator.

Original patch by Matt Bachmann.
2013-03-19 02:31:06 -04:00
Gregory P. Smith 029273fc90 Fixes issue #17192: Update the ctypes module's libffi to v3.0.13. This
specifically addresses a stack misalignment issue on x86 and issues on
some more recent platforms.
2013-03-18 17:11:20 -07:00
R David Murray a846f5ace8 #17448: Make test_sax skip if there are no xml parsers.
Patch by Rafael Santos.
2013-03-18 00:18:12 -04:00
R David Murray dd246171e4 #16057: Clarify why the base method default is called in custom encoders.
Original patch by Kushal Das.
2013-03-17 21:52:35 -04:00
Terry Jan Reedy f3460414d5 Issue #17415: Trim trailing whitespace 2013-03-17 15:28:10 -04:00
Terry Jan Reedy ec6e132987 Issue #17415: Clarify 'this' referent by moving containing sentence just after
the sentence referred to. Make other minor edits to improve flow.
2013-03-17 15:21:26 -04:00
Serhiy Storchaka a99dfd1ab6 Issue #16389: Fixed an issue number in previos commit. 2013-03-16 22:59:27 +02:00
Serhiy Storchaka 0f606a636a Issue #16564: Fixed a performance regression relative to Python 3.1 in the
caching of compiled regular expressions.
2013-03-16 22:52:09 +02:00
Terry Jan Reedy de6849fcf6 Merge heads 3.2. 2013-03-16 16:05:27 -04:00
Terry Jan Reedy dff04f44bc Issue #17418: specify that buffer sizes are bytes as soon as possible. 2013-03-16 15:56:27 -04:00
Ezio Melotti c28f6fa505 #11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial patch by Thomas Wouters. 2013-03-16 19:48:51 +02:00
Terry Jan Reedy 58e1e50be1 typo 2013-03-16 02:53:09 -04:00
Terry Jan Reedy 743c85a32e Issue # 10652: make tcl/tk tests run after __all__ test, patch by Zachary Ware. 2013-03-16 02:37:06 -04:00
R David Murray 612528d95d #17431: Fix missing import of BytesFeedParser in email.parser.
Initial patch contributed by Edmond Burnett.
2013-03-15 20:38:15 -04:00
Terry Jan Reedy f3f0681794 Issue #17398: document url argument of RobotFileParser 2013-03-15 16:50:23 -04:00
Terry Jan Reedy 4b3975b944 Issue #17047: Add news entry 2013-03-15 03:33:11 -04:00
Serhiy Storchaka 8ea4616f16 Issue #1285086: Get rid of the refcounting hack and speed up
urllib.parse.unquote() and urllib.parse.unquote_to_bytes().
2013-03-14 21:31:37 +02:00
Terry Jan Reedy 3b220e11eb Issue #17386 make.bat must run with Python 2 until Sphinx runs with Python 3.
If PYTHON is undefined, this fails without the launcher (installed with 3.3 or
from PyPI), but this is better than always failing. Patch from Zachary Ware.
2013-03-13 21:33:50 -04:00
Senthil Kumaran b5fe2479c1 #17307 - Example of HTTP PUT Request using http.client 2013-03-13 13:38:33 -07:00
Ezio Melotti 6771462961 #17402: avoid shadowing built-in map in mmap examples. Initial patch by Aman Shah. 2013-03-13 02:27:00 +02:00
Ezio Melotti a7d64a6f4c #17368: Fix an off-by-one error in the Python JSON decoder that caused a failure while decoding empty object literals when object_pairs_hook was specified. 2013-03-13 01:52:34 +02:00
Eli Bendersky 7343cb0790 Issue #11367: fix documentation of some find* methods in ElementTree 2013-03-12 06:01:22 -07:00
Terry Jan Reedy c30b7b16ea Issue #17047: remove doubled words found in 2.7 to 3.4 Lib/*,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:57:08 -04:00
Terry Jan Reedy 0158af38b7 Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:42:46 -04:00
Terry Jan Reedy 65e69b3718 Issue #17047: removed doubled words in Doc/*, Mac/*, and Tool/*
found by Serhiy Storchaka and Matthew Barnett
2013-03-11 17:23:46 -04:00
Ezio Melotti af8838f443 #17351: remove "object" inheritance from docs. Patch by Phil Elson. 2013-03-11 09:30:21 +02:00
Ezio Melotti 42a541bd49 #11963: remove human verification from test_parser and test_subprocess. 2013-03-11 05:53:34 +02:00
Ezio Melotti e7c329954c #11963: fix Windows buildbots. 2013-03-10 03:25:45 +02:00
Ezio Melotti 3919184014 #11963: avoid printing messages in test_parser. Initial patch by Éric Araujo. 2013-03-09 22:17:33 +02:00
Eli Bendersky 490cf4472e Add warning in ctypes documentation for #16575 and #16576 2013-03-09 05:54:00 -08:00
Terry Jan Reedy 9cbcc2f1c0 Issue #17332: fix json doc typo /convered/converted/ found by Ernie Hershey. 2013-03-08 19:35:15 -05:00
Vinay Sajip 832d99bdbb Issue #17376: Clarified documentation for TimedRotatingFileHandler weekday rotation. 2013-03-08 23:24:30 +00:00
Eli Bendersky f81de8df0a Issue #17378: ctypes documentation fix.
Document that ctypes automatically applies byref() when argtypes declares
POINTER.
2013-03-08 05:31:54 -08:00
R David Murray b9534f4ed5 PEP8 fixup on previous patch, remove unused import in test_email. 2013-03-07 18:15:13 -05:00
R David Murray e67c6c545b #14645: Generator now emits correct linesep for all parts.
Previously the parts of the message retained whatever linesep they had on
read, which means if the messages weren't read in univeral newline mode, the
line endings could well be inconsistent.  In general sending it via smtplib
would result in them getting fixed, but it is better to generate them
correctly to begin with.  Also, the new send_message method of smtplib does
not do the fixup, so that method is producing rfc-invalid output without this
fix.
2013-03-07 16:38:03 -05:00