Barry Warsaw
03fcfbef0a
- Issue #15906 : Fix a regression in argparse caused by the preceding change,
...
when action='append', type='str' and default=[].
2012-09-11 21:06:29 -04:00
Jesus Cea
a8a5b397c1
Closes #15793 : Stack corruption in ssl.RAND_egd(). Python 2.7 hasn't any issue about this, but add a test just to be sure
2012-09-11 01:55:04 +02:00
Jesus Cea
8e03b4cae0
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
2012-09-10 22:57:34 +02:00
Jesus Cea
20f0ea1f61
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete
2012-09-10 22:45:47 +02:00
Jesus Cea
3fb774ec5f
Closes #15910 : MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes
2012-09-10 21:39:07 +02:00
Jesus Cea
03a9d2a20b
Closes #15908 : SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes
2012-09-10 21:04:42 +02:00
Jesus Cea
dc0170a84a
#15676 : Proper attribution in Misc/ACKS
2012-09-10 20:18:43 +02:00
R David Murray
4709ac14ff
#14649 : add sample files omitted from previous checkin.
2012-09-10 11:20:47 -04:00
Christian Heimes
f6cdd35bc7
merge
2012-09-10 17:01:21 +02:00
Christian Heimes
47770ed914
Fixed memory leak in error branch of object_repr which may leak a reference to mod when type_name returns NULL. CID 715371
2012-09-10 16:57:36 +02:00
R David Murray
8d580539f0
#14649 : clarify DocTestSuite error when there are no docstrings.
...
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).
Patch by Chris Jerdonek.
2012-09-10 10:17:13 -04:00
doko@ubuntu.com
7a8634d8d8
backport from the trunk, to fix test_tools with srcdir != builddir
...
changeset: 77827:c23b442b5d5e
user: Antoine Pitrou <solipsis@pitrou.net>
date: Thu Jun 28 01:20:26 2012 +0200
summary: Avoid using scrdir, it's broken.
changeset: 77826:f0e58e778215
user: Neil Schemenauer <nas@arctrix.com>
date: Wed Jun 27 15:58:37 2012 -0600
summary: Fix bug in test_tools that prevented building is separate directory.
2012-09-10 14:34:42 +02:00
Christian Heimes
059ba52180
merge
2012-09-10 13:19:15 +02:00
Christian Heimes
d8edcb6505
Added missing va_end in error branch of PyArg_UnpackTuple(). CID 486641
2012-09-10 13:16:45 +02:00
doko@ubuntu.com
8fa3be2bc8
- Mention _heapq in Setup.dist.
2012-09-10 11:56:47 +02:00
Christian Heimes
8c1bce00d2
Closed reference leak of variable 'k' in function ste_new which wasn't decrefed in error cases
2012-09-10 03:08:46 +02:00
Christian Heimes
4e80eea60e
Fixed possible reference leak to mod when type_name() returns NULL
2012-09-10 03:00:14 +02:00
Christian Heimes
074ebced1b
PyTuple_Pack() was missing va_end() in its error branch which lead to a resource leak.
2012-09-10 02:54:51 +02:00
Jesus Cea
8b54d6d733
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:22:39 +02:00
Ned Deily
10fc104fed
Issue #15822 : Fix installation of lib2to3 grammar pickles to ensure
...
they are created in the install locations and with the proper timestamp.
(Solution suggested by MvL)
2012-09-08 18:47:27 -07:00
R David Murray
b9495c78a1
closes #5088 : document behavior of optparse defaults with 'append' action.
2012-09-08 16:47:24 -04:00
R David Murray
1b6e7c47f2
#15510 : clarify textwrap's handling of whitespace, and add confirming tests.
...
Patch by Chris Jerdonek.
2012-09-08 13:42:01 -04:00
Christian Heimes
b676727dca
Fix for fcc629208842
...
BSD's make doesn't support some of the features.
2012-09-08 19:12:05 +02:00
R David Murray
a99c7dedcb
#15847 : allow args to be a tuple in parse_args
...
This fixes a regression introduced by the fix for issue #13922 . Although args
is not documented as being allowed to be a tuple, previously this worked and
so naturally there are programs in the field that depend on it.
Patch by Zbyszek Jędrzejewski-Szmek.
2012-09-08 12:15:25 -04:00
Antoine Pitrou
e299cae230
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Christian Heimes
f84dcffcb9
Fix for fcc629208842
...
BSD's make doesn't support some of the features.
2012-09-07 02:24:58 +02:00
Christian Heimes
bc71f2cf98
Issue #15591 and Issue #11715 : silence output of setup.py when make is run with -s option.
2012-09-07 00:55:33 +02:00
Christian Heimes
f2acf63487
Issue #15591 and Issue #11715 : silence output of setup.py when make is run with -s option.
2012-09-07 00:58:26 +02:00
Christian Heimes
6fd3248855
Issue #15591 : run ctypes' configure in quiet mode when setup.py runs silently
2012-09-06 18:02:49 +02:00
Antoine Pitrou
58098a77e6
Issue #13992 : The trashcan mechanism is now thread-safe. This eliminates
...
sporadic crashes in multi-thread programs when several long deallocator
chains ran concurrently and involved subclasses of built-in container
types.
Because of this change, a couple extension modules compiled for 2.7.4
(those which use the trashcan mechanism, despite it being undocumented)
will not be loadable by 2.7.3 and earlier. However, extension modules
compiled for 2.7.3 and earlier will be loadable by 2.7.4.
2012-09-06 00:59:49 +02:00
Antoine Pitrou
c5eec0e387
Issue #15841 : The readable(), writable() and seekable() methods of io.BytesIO
...
and io.StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
Petri Lehtinen
80f4553d56
#15802 : Fix test logic in TestMaildir.test_create_tmp
2012-09-01 14:25:48 +03:00
Petri Lehtinen
f9e1f1128b
#13769 : Enhance docs for ensure_ascii semantics in JSON decoding functions
2012-09-01 07:29:06 +03:00
R David Murray
201018718f
#12776,#11839: call argparse type function only once.
...
Before, the type function was called twice in the case where the default
was specified and the argument was given as well. This was especially
problematic for the FileType type, as a default file would always be
opened, even if a file argument was specified on the command line.
Patch by Arnaud Fontaine, with additional test by Mike Meyer.
2012-08-31 23:15:28 -04:00
Trent Nelson
cd366620a9
Remove trailing whitespace in order to silence warnings on HP-UX.
2012-08-31 17:15:49 -04:00
Andrew Svetlov
2b326e4c2b
Issue #15825 : fix typo in OrderedDict docs.
...
Patch by Mike Hoy.
2012-08-31 13:53:30 +03:00
Trent Nelson
f6407a184d
Issue #15819 : Fix out-of-tree builds from a readonly source.
2012-08-30 14:56:13 +00:00
Ezio Melotti
6bb9c73b06
Add missing comma.
2012-08-29 17:50:42 +03:00
Vinay Sajip
1321c444d9
Closes #15710 : accept long in _checkLevel.
2012-08-29 14:33:14 +01:00
Vinay Sajip
a116df0f39
Merged upstream changes.
2012-08-29 14:27:07 +01:00
Vinay Sajip
3d212e6ee5
Closes #15807 : Removed incorrect directive from help.
2012-08-29 14:25:42 +01:00
Trent Nelson
da4277a739
Issue #15765 : Fix quirky NetBSD getcwd() behaviour.
...
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Benjamin Peterson
23d49d3e7e
use the stricter PyMapping_Check ( closes #15801 )
2012-08-28 17:55:35 -04:00
Matthias Klose
25cf30faf9
- fix typo introduced in http://hg.python.org/cpython/rev/f918d4a06c64
2012-08-28 19:23:56 +02:00
Matthias Klose
555b9e07ed
- fix paste error (whitespace) from previous commit
2012-08-28 19:07:08 +02:00
Matthias Klose
63c6f511c3
- Issue #15591 : Fix parsing MAKEFLAGS in the sharedmods target.
2012-08-28 18:52:28 +02:00
Hynek Schlawack
7d978902d0
#14880 : Fix kwargs notation in csv.reader, .writer & .register_dialect
...
Patch by Chris Rebert.
2012-08-28 12:33:46 +02:00
Ezio Melotti
8662c84ac8
#15788 : fix broken links in subprocess doc. Patch by Chris Rebert.
2012-08-27 10:00:05 +03:00
Ronald Oussoren
a00b100c9c
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
2012-08-25 11:18:48 +02:00
Georg Brandl
3196529f3c
Fix wrong way of adding Error information in shutil.copytree.
2012-08-25 10:11:57 +02:00