Éric Araujo
c822f08c71
Merge #11751 from 3.2
2011-10-11 02:46:59 +02:00
Éric Araujo
2336c8553c
Increase test coverage for distutils.filelist ( #11751 ).
...
Patch by Justin Love.
2011-10-11 02:45:51 +02:00
Éric Araujo
6ebea15e0b
Merge fixes for #10526 , #10359 , #11254 , #9100 and the bug without number
2011-10-08 02:57:45 +02:00
Éric Araujo
47a4521ece
Fix distutils byte-compilation to comply with PEP 3147 ( #11254 ).
...
Patch by Jeff Ramnani. Tested with -B, -O and -OO.
2011-10-08 00:34:13 +02:00
Charles-François Natali
47413c1171
Issue #10141 : socket: add SocketCAN (PF_CAN) support. Initial patch by Matthias
...
Fuchs, updated by Tiago Gonçalves.
2011-10-06 19:47:44 +02:00
Antoine Pitrou
1665d2c75f
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:35:28 +02:00
Antoine Pitrou
0fc80c0d5a
Add John to ACKS
2011-10-04 12:26:34 +02:00
Antoine Pitrou
ffd41d9f10
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:23:04 +02:00
Antoine Pitrou
8e4dd08f23
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:37:06 +02:00
Antoine Pitrou
5a688dbf97
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:25:28 +02:00
R David Murray
1d30db459d
merge #4147 : minidom's toprettyxml no longer adds whitespace to text nodes.
2011-10-01 16:22:35 -04:00
R David Murray
791744b070
#4147 : minidom's toprettyxml no longer adds whitespace to text nodes.
...
Patch by Dan Kenigsberg.
2011-10-01 16:19:51 -04:00
Charles-François Natali
9624a764ff
Issue #13058 : ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
...
Jarosch.
2011-09-29 19:49:37 +02:00
Charles-François Natali
5a4a109694
Issue #13058 : ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
...
Jarosch.
2011-09-29 19:46:37 +02:00
Victor Stinner
dfb866d127
Enhance Py_ARRAY_LENGTH(): fail at build time if the argument is not an array
...
Move other various macros to pymcacro.h
Thanks Rusty Russell for having written these amazing C macros!
2011-09-29 01:12:24 +02:00
Meador Inge
48d49497c5
Issue #13013 : ctypes: Fix a reference leak in PyCArrayType_from_ctype.
...
Thanks to Suman Saha for finding the bug and providing a patch.
2011-09-27 20:52:04 -05:00
Meador Inge
b86ecf4bd1
Issue #13013 : ctypes: Fix a reference leak in PyCArrayType_from_ctype.
...
Thanks to Suman Saha for finding the bug and providing a patch.
2011-09-27 20:45:30 -05:00
Ned Deily
86ca04ccc7
Issue #9871 : Prevent IDLE 3 crash when given byte stings
...
with invalid hex escape sequences, like b'\x0'.
(Original patch by Claudiu Popa.)
2011-09-14 14:56:32 -07:00
Ned Deily
79746426c4
Issue #9871 : Prevent IDLE 3 crash when given byte stings
...
with invalid hex escape sequences, like b'\x0'.
(Original patch by Claudiu Popa.)
2011-09-14 14:49:14 -07:00
Ezio Melotti
6a8c8a80a1
#12888 : merge with 3.2.
2011-09-05 17:15:32 +03:00
Ezio Melotti
d9e0b068af
#12888 : Fix a bug in HTMLParser.unescape that prevented it to escape more than 128 entities. Patch by Peter Otten.
2011-09-05 17:11:06 +03:00
Nadeem Vawda
44c6ef50af
Merge: #12839 : Fix crash in zlib module due to version mismatch.
...
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
2011-08-28 11:29:35 +02:00
Nadeem Vawda
524148ad7a
Issue #12839 : Fix crash in zlib module due to version mismatch.
...
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
2011-08-28 11:26:46 +02:00
Antoine Pitrou
4fd1e6a3ba
Issue #12803 : SSLContext.load_cert_chain() now accepts a password argument
...
to be used if the private key is encrypted. Patch by Adam Simpkins.
2011-08-25 14:39:44 +02:00
Charles-François Natali
b09f25e9a3
Issue12810: Remove check for negative unsigned value in socketmodule.c. Patch
...
by Joel Stanley.
2011-08-24 20:07:54 +02:00
Victor Stinner
710d27e93a
Close #12826 : fix socketmodule.c for OpenBSD, include sys/uio.h
...
Patch written by Remi Pointel.
2011-08-23 10:57:32 +02:00
Nick Coghlan
c4a287114e
Fix #12811 by closing files promptly in tabnanny.check. Patch by Anthony Briggs.
2011-08-22 16:19:19 +10:00
Nadeem Vawda
3d3bc81219
Issue #12678 : Fix distutils sdist test on Windows.
...
Patch by Jeremy Kloth.
2011-08-21 22:35:41 +02:00
Éric Araujo
ad548b8534
Merge fixes for #9860 , #11104/#8688 and #12331 from 3.2
2011-07-31 18:33:00 +02:00
Éric Araujo
ab7c1b3f11
Fix regression with distutils MANIFEST handing ( #11104 , #8688 ).
...
The changed behavior of sdist in 3.1 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).
The fixes that were committed for #8688 (76643c286b9f by Tarek and
d54da9248ed9 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them. This changeset should fix everything; the tests have been
expanded and I successfully tested the 2.7 version with Mercurial, which
suffered from this regression.
I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using.
Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.
2011-07-31 04:06:12 +02:00
Charles-François Natali
def35435ee
Issue #12464 : tempfile.TemporaryDirectory.cleanup() should not follow symlinks:
...
fix it. Patch by Petri Lehtinen.
2011-07-29 18:59:24 +02:00
Raymond Hettinger
abe9dc3f30
Issue 12514: Use try/finally to assure that timeit restores GC when done.
2011-07-29 00:08:19 -07:00
Raymond Hettinger
3a081f526d
Issue 12514: Use try/finally to assure that timeit restores GC when done.
2011-07-29 00:02:04 -07:00
Charles-François Natali
acd9f7ce32
Issue #11784 : Improve multiprocessing.Process.join() documentation. Patch by
...
Patrick Sabin.
2011-07-25 18:35:49 +02:00
Charles-François Natali
dc1d548ecb
Issue #12560 : Build libpython.so on OpenBSD. Patch by Stefan Sperling.
2011-07-24 22:44:15 +02:00
Charles-François Natali
749400a94d
Issue #12560 : Build libpython.so on OpenBSD. Patch by Stefan Sperling.
2011-07-24 22:41:18 +02:00
Antoine Pitrou
d649480739
Issue #12551 : Provide a get_channel_binding() method on SSL sockets so as
...
to get channel binding data for the current SSL session (only the
"tls-unique" channel binding is implemented). This allows the
implementation of certain authentication mechanisms such as SCRAM-SHA-1-PLUS.
Patch by Jacek Konieczny.
2011-07-21 01:11:30 +02:00
Ned Deily
dac7de3102
Issue #12587 : Correct faulty test file and reference in test_tokenize.
...
(Patch by Robert Xiao)
2011-07-19 16:18:11 -07:00
Ned Deily
2ea6fccf64
Issue #12587 : Correct faulty test file and reference in test_tokenize.
...
(Patch by Robert Xiao)
2011-07-19 16:15:27 -07:00
Eric V. Smith
c12469df22
Merge from 3.2.
2011-07-18 14:08:55 -04:00
Eric V. Smith
12ebefc9d3
Closes #12579 . Positional fields with str.format_map() now raise a ValueError instead of SystemError.
2011-07-18 14:03:41 -04:00
Victor Stinner
a7878b77dc
Close #6755 : Add get_wch() method to curses.window class
...
Patch by Iñigo Serna.
2011-07-14 23:07:44 +02:00
Victor Stinner
d93da2b952
(merge 3.2) Close #4376 : ctypes now supports nested structures in a endian
...
different than the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:45:16 +02:00
Victor Stinner
6636121950
Close #4376 : ctypes now supports nested structures in a endian different than
...
the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:43:18 +02:00
Antoine Pitrou
093c8e4bf0
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 21:58:39 +02:00
Antoine Pitrou
84f1b1718d
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 21:57:15 +02:00
Éric Araujo
4468e55d4b
Close file handles in a timely manner in packaging.database ( #12504 ).
...
This fixes a bug with the remove (uninstall) feature on Windows. Patch
by Thomas Holmes.
2011-07-08 17:22:19 +02:00
Éric Araujo
ce5fe83878
Factor out code used by packaging commands for HTTP requests ( #12169 ).
...
We now have one function to prepare multipart POST requests, and we use
CRLF, as recommended by the HTTP spec (#10150 ). Initial patch by John
Edmonds.
2011-07-08 16:27:12 +02:00
Brian Curtin
6a4ffd7295
Fix #11512 . Add an initial test suite for the cgitb, providing 75% coverage.
...
Patch by Robbie Clemons (robquad), produced at the PyCon 2011 sprints.
2011-07-05 19:14:16 -05:00
R David Murray
db4120bf9d
merge #12147 : make send_message correctly handle Sender and Resent- headers.
2011-07-02 21:10:44 -04:00