Commit graph

78877 commits

Author SHA1 Message Date
Ezio Melotti
aaa5d1c582 #17779: test_osx_env now works with unittest test discovery. Patch by Zachary Ware. 2013-04-19 05:38:18 +03:00
Ezio Melotti
f7520dc0d7 Fix uploadTestCase to work even when HTTPSConnection is not available. 2013-04-19 04:23:09 +03:00
Ezio Melotti
72b8502992 #11182: remove the unused and undocumented pydoc.Scanner class. Patch by Martin Morrison. 2013-04-19 02:53:12 +03:00
Victor Stinner
f476405503 fix typo in a comment 2013-04-18 23:21:19 +02:00
Antoine Pitrou
5b235d0923 Issue #17741: Add ElementTree.IncrementalParser, an event-driven parser for non-blocking applications. 2013-04-18 19:37:06 +02:00
R David Murray
323d2927f0 Null merge. 2013-04-18 09:53:30 -04:00
R David Murray
bca1a2629a #17135: Add note in imp to use importlib for new programs. 2013-04-18 09:51:17 -04:00
Victor Stinner
bb4503f61e Partial revert of changeset 9744b2df134c
PyUnicode_Append() cannot call directly resize_compact(): I forgot that a
string can be ready *and* not compact (a legacy string can also be ready).
2013-04-18 09:41:34 +02:00
Victor Stinner
fb161b1b6d Split PyUnicode_DecodeCharmap() into subfunction for readability 2013-04-18 01:44:27 +02:00
R David Murray
33a3c50db5 #17135: mark imp as deprecated as of 3.4. 2013-04-17 18:50:12 -04:00
Victor Stinner
170ca6f84b Fix bug in Unicode decoders related to _PyUnicodeWriter
Bug introduced by changesets 7ed9993d53b4 and edf029fc9591.
2013-04-18 00:25:28 +02:00
Victor Stinner
376cfa122d Fix typo in unicode_decode_call_errorhandler_writer()
Bug introduced by changeset 7ed9993d53b4.
2013-04-17 23:58:16 +02:00
Victor Stinner
8f674ccd64 Close #17694: Add minimum length to _PyUnicodeWriter
* Add also min_char attribute to _PyUnicodeWriter structure (currently unused)
 * _PyUnicodeWriter_Init() has no more argument (except the writer itself):
   min_length and overallocate must be set explicitly
 * In error handlers, only enable overallocation if the replacement string
   is longer than 1 character
 * CJK decoders don't use overallocation anymore
 * Set min_length, instead of preallocating memory using
   _PyUnicodeWriter_Prepare(), in many decoders
 * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
2013-04-17 23:02:17 +02:00
Richard Oudkerk
e84a51c38e Merge. 2013-04-17 21:27:17 +01:00
Richard Oudkerk
245bbee0d5 Merge. 2013-04-17 21:24:58 +01:00
Richard Oudkerk
0471ac3d80 Merge. 2013-04-17 21:16:52 +01:00
Richard Oudkerk
b147f60a38 Issue #17555: Fix ForkAwareThreadLock so that size of after fork
registry does not grow exponentially with generation of process.
2013-04-17 21:09:38 +01:00
Antoine Pitrou
b8da0a5842 Issue #17782: Fix undefined behaviour on platforms where `struct timespec`'s "tv_nsec" member is not a C long. 2013-04-17 22:07:51 +02:00
Antoine Pitrou
cf8a1e51ec - Issue #17782: Fix undefined behaviour on platforms where `struct timespec`'s "tv_nsec" member is not a C long. 2013-04-17 22:06:44 +02:00
Richard Oudkerk
409c31390f Issue #17555: Fix ForkAwareThreadLock so that size of after fork
registry does not grow exponentially with generation of process.
2013-04-17 20:58:00 +01:00
Benjamin Peterson
c149902175 merge 3.3 2013-04-17 10:24:58 -04:00
Giampaolo Rodola'
308307190f Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts. 2013-04-17 13:12:27 +02:00
Giampaolo Rodola'
b38897fc91 Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts. 2013-04-17 13:08:59 +02:00
Roger Serwy
22b9e651c2 #14735: merge with 3.3. 2013-04-17 00:27:31 -05:00
Roger Serwy
643ea53c14 #14735: Update IDLE docs to omit "Control-z on Windows". 2013-04-17 00:22:50 -05:00
Ezio Melotti
5aa7685a1c #17771: merge with 3.3. 2013-04-17 07:34:31 +03:00
Ezio Melotti
a68c1ab571 #17771: fix typo. Patch by Andriy Mysyk. 2013-04-17 07:34:13 +03:00
Ezio Melotti
abe46fd810 #17766: merge with 3.3. 2013-04-17 04:36:45 +03:00
Ezio Melotti
d13c008bf4 #17766: test_iterlen now works with unittest test discovery. Patch by Zachary Ware. 2013-04-17 04:34:05 +03:00
Ezio Melotti
3533ef2d21 #17740: merge with 3.3. 2013-04-17 04:10:51 +03:00
Ezio Melotti
c048d98501 #17740: fix links to the socket function. Initial patch by Zachary Ware. 2013-04-17 04:10:26 +03:00
Antoine Pitrou
9b42128e2c Issue #17739: fix the description of SSLSocket.getpeercert(binary_form=True) for server sockets.
Thanks to David D Lowe for reporting.
2013-04-16 20:28:15 +02:00
Antoine Pitrou
d34941ad4e Issue #17739: fix the description of SSLSocket.getpeercert(binary_form=True) for server sockets.
Thanks to David D Lowe for reporting.
2013-04-16 20:27:17 +02:00
Barry Warsaw
99c56e8f58 Remove unused import 2013-04-16 11:19:11 -04:00
Barry Warsaw
20c08c8041 Remove unused import. 2013-04-16 11:18:53 -04:00
Barry Warsaw
ecaefcf44e - Issue #17012: shutil.which() no longer fallbacks to the PATH environment
variable if empty path argument is specified.  Patch by Serhiy Storchaka.
2013-04-16 11:18:18 -04:00
Barry Warsaw
618738b921 - Issue #17012: shutil.which() no longer fallbacks to the PATH environment
variable if empty path argument is specified.  Patch by Serhiy Storchaka.
2013-04-16 11:05:03 -04:00
Alexandre Vassalotti
7c5e094cbf Make C and Python implementations of pickle load STRING opcodes the same way.
The C version tried to remove trailing whitespace between the last quote and
the newline character. I am not sure why it had this because pickle never
generated such pickles---for this to happen repr(some_string) would need to
return trailing whitespace. It was maybe there to make it easier for people
to write pickles in text editors. Anyhow, the Python version doesn't do this
so there is no point keeping this around anymore.

Also, I've changed the exception raised when a bad pickle is encountered.
Again this unlikely to make much difference to anyone though it does make
testing slightly nicer for us.
2013-04-15 23:14:55 -07:00
Benjamin Peterson
48a2e7c357 merge 3.3 2013-04-15 21:38:33 -04:00
Benjamin Peterson
51ce29c530 remove pointless code (closes #17738) 2013-04-15 21:38:25 -04:00
Antoine Pitrou
af94051a93 Issue #17710: Fix pickle raising a SystemError on bogus input. 2013-04-15 21:55:14 +02:00
Antoine Pitrou
3034efdd29 Issue #17710: Fix pickle raising a SystemError on bogus input. 2013-04-15 21:51:09 +02:00
Ezio Melotti
acfc454c10 #13510: merge with 3.3. 2013-04-15 19:09:29 +03:00
Ezio Melotti
ed3cd7e445 #13510: clarify that f.readlines() is note necessary to iterate over a file. Patch by Dan Riti. 2013-04-15 19:08:31 +03:00
Eric V. Smith
7d55a40b9a Issue #17728: Merge with 3.3. 2013-04-15 09:53:49 -04:00
Eric V. Smith
45fe62dc9c Issue #17728: Specify default precision for float.format for presentation types e, f, and g. 2013-04-15 09:51:54 -04:00
Nick Coghlan
d25e7de4a1 Merge fix for #17731 from 3.3 2013-04-15 22:57:57 +10:00
Nick Coghlan
f1465f0535 Close #17731: Clean up properly in test_import 2013-04-15 22:56:51 +10:00
Vinay Sajip
66940a11f8 Issue #17713: Added failure diagnostics to test. 2013-04-15 11:59:35 +01:00
Victor Stinner
77282cb4f8 Cleanup PyUnicode_Contains()
* No need to double-check that strings are ready: test already done by
   PyUnicode_FromObject()
 * Remove useless kind variable (use kind1 instead)
2013-04-14 19:22:47 +02:00