41948 Commits

Author SHA1 Message Date
Georg Brandl
2daf6ae249 Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime)
in order to make algorithmic complexity attacks on (e.g.) web apps much more complicated.

The environment variable PYTHONHASHSEED and the new command line flag -R control this
behavior.
2012-02-20 19:54:16 +01:00
Charles-François Natali
ec1712a166 Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.
2012-02-18 14:42:57 +01:00
Vinay Sajip
2f7b286a8c Revert fix for #13807 mistakenly applied in this branch. 2012-02-03 18:23:05 +00:00
Antoine Pitrou
f2bf8a6ac5 Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure. 2012-01-27 09:48:47 +01:00
Vinay Sajip
889bb2969d Closes #13807: Now checks for sys.stderr being there before writing to it. 2012-01-20 11:23:02 +00:00
Benjamin Peterson
b462da8c0a fix this to not depend on dictionary order 2012-01-03 16:23:11 -06:00
Éric Araujo
ee19c772cb Remove mentions of previous license in profile module docs (#12417 followup).
Also remove an extra docstring.
2011-07-28 22:56:24 +02:00
Antoine Pitrou
8cdc40e3b0 Issue #11603: Fix a crash when __str__ is rebound as __repr__.
Patch by Andreas Stührk.
2011-07-15 21:15:07 +02:00
Charles-François Natali
e22813067e Issue #12502: asyncore: fix polling loop with AF_UNIX sockets. 2011-07-14 19:53:38 +02:00
Charles-François Natali
778db49da9 Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
the garbage collector while the Heap lock is held.
2011-07-02 14:35:49 +02:00
Benjamin Peterson
afa44a8096 update profile license (closes #12417) 2011-06-27 09:14:34 -05:00
Mark Dickinson
40d9ebe031 Issue #12228: Fix exchanged flag descriptions in stat.rst. Thanks Sandro Tosi. 2011-06-25 12:03:33 +02:00
Senthil Kumaran
fe9230aac6 Fix closes issue12261 - Minor documention changes in the urllib.parse.rst 2011-06-19 13:52:49 -07:00
Benjamin Peterson
acde6a0a40 onto 3.1.5 2011-06-11 11:33:01 -05:00
Benjamin Peterson
f2ff3054f9 Added tag v3.1.4 for changeset c918ec9f3a76 2011-06-11 09:59:17 -05:00
Benjamin Peterson
d858df20d0 bump to 3.1.4 v3.1.4 2011-06-11 09:58:58 -05:00
Benjamin Peterson
1df0f214a9 fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
Victor Stinner
e6eafa2ade Issue #10801: Fix test_unicode_filenames() of test_zipfile
Just try to open files from the ZIP for reading, don't extract them to avoid
UnicodeEncodeError if the filename is not encodable to the filesystem encoding
(e.g. ASCII locale encoding).
2011-06-10 16:32:54 +02:00
Martin v. Löwis
721bb33e3b Add 3.1.4 UUIDs. 2011-06-05 10:56:44 +02:00
Martin v. Löwis
4c226dac02 Do not add txt files twice. 2011-06-05 10:55:57 +02:00
Benjamin Peterson
52e61449e3 return NULL on error 2011-05-31 21:38:15 -05:00
Benjamin Peterson
a22c98de85 simply use the Python version for pyexpat.__version__ #12221 2011-05-31 18:59:49 -05:00
Benjamin Peterson
bb11bb0dbb Added tag v3.1.4rc1 for changeset 32fcb9e94985 2011-05-29 16:10:15 -05:00
Benjamin Peterson
5f250fbafe update pydoc-topics v3.1.4rc1 2011-05-29 16:09:08 -05:00
Benjamin Peterson
9a63745273 bump to 3.1.4rc1 2011-05-29 16:06:00 -05:00
Éric Araujo
e4427bf9c9 Branch merge 2011-05-29 17:56:20 +02:00
Ned Deily
d5a91961dd Issue #12205: Fix test_subprocess failure due to uninstalled test data. 2011-05-29 02:39:02 -07:00
Éric Araujo
87418afb3b Fix typo in 0311f62714f7 2011-05-29 03:48:49 +02:00
Éric Araujo
6a21f5527c Don’t misuse “package data” in pprint example 2011-05-29 03:46:31 +02:00
Éric Araujo
456ae893d7 Re-add missing doc stub for the distutils check command 2011-05-29 00:22:06 +02:00
Éric Araujo
000893fab2 Minor touch-ups in distutils.cmd.Command doc 2011-05-29 00:14:45 +02:00
Éric Araujo
489c8ff26b Fix test_build_py when sys.dont_write_bytecode is true (#9831).
The tests now pass all combinations of -O/-OO and -B.  See also #7071
and #6292 for previous variations on the same theme.

test_versionpredicate needs a skip when sys.flags.optimize is true, but
I don’t know how to make that work with a DocTestSuite.
2011-05-28 23:32:50 +02:00
Ned Deily
b8e59f77e6 Issue #985064: Make plistlib more resilient to faulty input plists.
Patch by Mher Movsisyan.
2011-05-28 02:19:19 -07:00
Ned Deily
9a7c524dc6 Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:19:56 -07:00
Benjamin Peterson
0a5dad9ef1 fix spacing 2011-05-27 14:17:04 -05:00
Benjamin Peterson
74897ba46f fix indentation 2011-05-27 14:10:24 -05:00
Éric Araujo
f33de71514 Minor doc addition for clarity 2011-05-27 04:42:47 +02:00
Éric Araujo
e0854f9dbf Add missing closing paren 2011-05-27 04:36:52 +02:00
Éric Araujo
dec2067b2a Branch merge 2011-05-26 16:49:59 +02:00
Victor Stinner
a80987f20d Issue #12175: RawIOBase.readall() now returns None if read() returns None. 2011-05-25 22:47:16 +02:00
Victor Stinner
b79f28ccbd Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if
the file is closed.
2011-05-25 22:09:03 +02:00
Éric Araujo
29ef0064de Branch merge 2011-05-25 18:12:22 +02:00
Victor Stinner
46f8264b8e Issue #12057: Add cjkencodings directory to the Makefile and Tools/msi/msi.py 2011-05-25 01:13:59 +02:00
Victor Stinner
8fdfc20fc4 Issue #12057: Add tests for the HZ encoding 2011-05-25 00:06:51 +02:00
Victor Stinner
6bcbef7da0 Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:17:55 +02:00
Benjamin Peterson
f847393308 backout 8b384de4e780, so a proper fix can be considered (#5715) 2011-05-24 12:50:34 -05:00
Benjamin Peterson
fbe56bb8bd use '->' to indicate return values 2011-05-24 12:42:51 -05:00
Benjamin Peterson
a7cdb0f218 generally, sockets should be closed after they're used 2011-05-24 12:06:31 -05:00
Charles-François Natali
7b54e7562d Issue #5715: In socketserver, close the server socket in the child process. 2011-05-24 18:23:15 +02:00
Benjamin Peterson
7963a35b41 correctly lookup __dir__ 2011-05-23 16:11:05 -05:00