Commit Graph

77983 Commits

Author SHA1 Message Date
R David Murray addb0be63e Merge: #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:43:58 -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
Ezio Melotti 03e667d15a Fix memory leak introduced in 15190138d3f3. 2013-03-07 21:18:45 +02:00
Ezio Melotti d4725f3f20 Merge typo fix in Misc/NEWS entry from 3.3. 2013-03-07 19:56:15 +02:00
Ezio Melotti 0e7ec44aa9 Merge typo fix in Misc/NEWS entry from 3.2. 2013-03-07 19:55:08 +02:00
Ezio Melotti 697e7bacbc Fix typo in Misc/NEWS entry. 2013-03-07 19:53:19 +02:00
Ezio Melotti a44ce78d94 #11732: null merge with 3.3. 2013-03-07 18:46:09 +02:00
Ezio Melotti de7f4b2947 #11732: null merge with 3.2. 2013-03-07 18:45:48 +02:00
Ezio Melotti 1f38621a33 #11732: add a new suppress_crash_popup() context manager to test.support that disables crash popups on Windows and use it in test_ctypes. 2013-03-07 18:44:29 +02:00
Ezio Melotti 1181a46e09 #11732: merge with 3.3. 2013-03-07 18:38:45 +02:00
Ezio Melotti e846342f8a #11732: make suppress_crash_popup() work on Windows XP and Windows Server 2003. 2013-03-07 18:37:13 +02:00
Nick Coghlan 90c91afd2e Merge fix for #15465 from 3.3 2013-03-07 23:45:03 +10:00
Nick Coghlan 7d82c8621b Close #15465: Document C API version macros
Mostly moving the existing macro docs over from the standard
library docs to the C API docs where they belong.

Patch by Kushal Das.
2013-03-07 23:14:44 +10:00
Giampaolo Rodola' 3ff5e7578e Refactor ftplib by getting rid of 4 methods (retr*() and stor*()) which were duplicated in TLS_FTP class. 2013-03-07 14:03:27 +01:00
Giampaolo Rodola' 94c56a172c PEP8-ify ftplib.py: get rid of multiple statements on one line (if cond: ...) 2013-03-07 13:51:20 +01:00
Stefan Krah e8d4d51f59 Merge 3.3. 2013-03-07 01:23:01 +01:00
Stefan Krah 4f1974496a Issue #17361: Use cc from sysconfig for testing flags. 2013-03-07 01:12:03 +01:00
Victor Stinner fb84b5d48d (Merge 3.3) _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
2013-03-06 19:29:09 +01:00
Victor Stinner 2cb16aa3cb _PyUnicode_Writer() now also reuses Unicode singletons:
empty string and latin1 single character
2013-03-06 19:28:37 +01:00
Eli Bendersky be0c028eb5 Fix doc grammar and line width 2013-03-06 06:50:36 -08:00
Eli Bendersky 68dd8ba010 Fix doc grammar and line width 2013-03-06 06:49:22 -08:00
Eli Bendersky f9164e13fc Fix doc grammar and line width 2013-03-06 06:48:57 -08:00
Eli Bendersky ca83233216 Fix formatting changes that led to compilation errors 2013-03-06 06:30:23 -08:00
Eli Bendersky 3612da6b2b call_commethod was only used in samples/Windows, which no longer exists.
This method is dead code - not documented, not tested. As far as we know, it
can be horribly broken.
2013-03-06 06:21:46 -08:00
Eli Bendersky d867bad0fc Fix some formatting 2013-03-06 05:45:57 -08:00
Ezio Melotti ed63754ef6 #17364: merge with 3.3. 2013-03-06 03:23:52 +02:00
Ezio Melotti 20d19241e5 #17364: merge with 3.2. 2013-03-06 03:23:28 +02:00
Ezio Melotti 33e20d1954 #17364: remove documentation for a function that does not exist. 2013-03-06 03:20:27 +02:00
Ezio Melotti 648b5900d5 #17363: merge with 3.3. 2013-03-06 02:59:25 +02:00
Ezio Melotti 32b0f02034 #17363: fix arguments in PyState_AddModule and PyState_RemoveModule docs. 2013-03-06 02:57:25 +02:00
Victor Stinner cf77da9fb5 Backed out changeset b9f7b1bf36aa 2013-03-06 01:09:24 +01:00
Victor Stinner 313cac88c5 Issue #17223: Fix PyUnicode_FromUnicode() on Windows (16-bit wchar_t type)
to reject invalid UTF-16 surrogate.
2013-03-06 00:41:50 +01:00
Victor Stinner e5c0533b58 Issue #17223: Add another test to check that _PyUnicode_Ready() rejects
code points bigger than U+10ffff
2013-03-06 00:39:03 +01:00
Ezio Melotti 87a249c119 #11732: merge with 3.3. 2013-03-05 20:33:38 +02:00
Ezio Melotti e1857d999d Fix indentation. 2013-03-05 20:31:34 +02:00
Ezio Melotti 25a404520d #11732: add a new suppress_crash_popup() context manager to test.support. 2013-03-05 20:26:17 +02:00
Senthil Kumaran df1d3c5c4b Reverting the changeset b87792757ee8 made for Issue #12921 2013-03-05 02:28:18 -08:00
Senthil Kumaran 884f0585a4 Reverting the changeset 5d76a4746d9d made for Issue #12921 2013-03-05 02:26:50 -08:00
Senthil Kumaran 1e7551dc87 Reverting the changeset 5126e62c60af made for Issue #12921 2013-03-05 02:25:58 -08:00
Senthil Kumaran 24431f1802 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:26:33 -08:00
Senthil Kumaran c37f835a43 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:23:44 -08:00
Senthil Kumaran 3fb066d286 Fix Issue #12921: BaseHTTPServer's send_error should send the correct error
response message when  send_error includes a message in addition to error
status. Patch contributed by Karl.
2013-03-05 01:22:57 -08:00
Raymond Hettinger f7f8972a59 merge 2013-03-05 02:11:37 -05:00
Raymond Hettinger 2e8d9a799d Fix typo 2013-03-05 02:11:10 -05:00
Raymond Hettinger e516604f7c merge 2013-03-05 01:37:02 -05:00
Raymond Hettinger f6b26676bc Issue #16098: Update heapq.nsmallest to use the same algorithm as nlargest.
This removes the dependency on bisect and it bring the pure Python code
in-sync with the C code.
2013-03-05 01:36:30 -05:00
Raymond Hettinger 975a8e8f76 Use LT in all comparisons 2013-03-05 01:17:57 -05:00
Antoine Pitrou 221760a3aa Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:35:55 +01:00
Antoine Pitrou 31584e30ab Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:33:36 +01:00
Antoine Pitrou 44d5214927 Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:30:01 +01:00