Hynek Schlawack
9bd4bf2a3d
#10053 : Don't close FDs when FileIO.__init__ fails
...
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 19:45:19 +02:00
Richard Oudkerk
4215d2738a
Issue #15101 : Make pool finalizer avoid joining current thread
2012-06-18 15:37:31 +01:00
Petri Lehtinen
48ee6908bc
Fix NEWS entry for #15036
2012-06-18 10:42:08 +03:00
Nick Coghlan
a093312871
Issue #15043 : skip test_gdb if the custom hooks can't be loaded (backport from 3.x)
2012-06-17 19:03:39 +10:00
Meador Inge
43f42fc3cb
Issue #15054 : Fix incorrect tokenization of 'b' and 'br' string literals.
...
Patch by Serhiy Storchaka.
2012-06-16 21:05:50 -05:00
Petri Lehtinen
7cf6699699
#15036 : Make a repeated changes and flushes work with single-file mailboxes
2012-06-15 20:50:51 +03:00
Richard Oudkerk
926f58df57
Issue #10133 : Make multiprocessing deallocate buffer if socket read fails.
...
Patch by Hallvard B Furuseth.
2012-06-11 15:11:35 +01:00
Terry Jan Reedy
5525eb77fa
NEWS fixes
2012-06-07 19:50:30 -04:00
Richard Oudkerk
2182e0578c
Issue #13854 : Properly handle non-integer, non-string arg to SystemExit
...
Previously multiprocessing only expected int or str. It also wrongly
used an exit code of 1 when the argument was a string instead of zero.
2012-06-06 19:01:14 +01:00
Richard Oudkerk
d44a4a27a6
Issue #12157 : pool.map() does not handle empty iterable correctly
...
Initial patch by mouad
2012-06-06 17:52:18 +01:00
Ned Deily
5e247b705e
Issue #14962 : Update text coloring in IDLE shell window after changing
...
options. Patch by Roger Serwy.
2012-05-31 09:17:29 -07:00
Ned Deily
7148984d61
Issue #10997 : Prevent a duplicate entry in IDLE's "Recent Files" menu.
2012-05-29 10:42:34 -07:00
Antoine Pitrou
ff0e22b6ec
Issue #14775 : Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.
...
Additional comments by Tim Silk.
2012-05-28 22:22:34 +02:00
Meador Inge
fe7aa49f24
Issue #9041 : raised exception is misleading
...
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 13:52:59 -05:00
Terry Jan Reedy
d9d276b0dc
Issue12510: Attempting to get invalid tooltip no longer closes Idle.
...
Original patch by Roger Serwy.
2012-05-27 21:28:42 -04:00
Terry Jan Reedy
eaa7e7825e
Issue #10365 : File open dialog now works instead of crashing
...
even when parent window is closed. Patch by Roger Serwy.
2012-05-26 20:33:32 -04:00
Terry Jan Reedy
42f7b7ecb2
Issue #14876 : Use user-selected font for highlight configuration.
...
Patch by Roger Serwy.
2012-05-26 16:55:43 -04:00
Senthil Kumaran
37484dc324
Issue #14036 : return None when port in urlparse cross 65535
2012-05-24 21:54:34 +08:00
Antoine Pitrou
cd8799f077
Issue #14888 : Fix misbehaviour of the _md5 module when called on data larger than 2**32 bytes.
2012-05-23 23:16:14 +02:00
Ezio Melotti
ed8cf7a543
#14875 : Use float('inf') instead of float('1e66666') in the json module.
2012-05-21 17:46:55 -06:00
Martin v. Löwis
ed11a5d018
Issue #8767 : Restore building with --disable-unicode.
...
Original patch by Stefano Taschini.
2012-05-20 10:42:17 +02:00
Ned Deily
77e77a1273
Issue #14572 : Prevent build failures with pre-3.5.0 versions of
...
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.
2012-05-19 23:35:05 -07:00
Senthil Kumaran
f439a36630
Issue #14426 : Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
2012-05-20 12:02:44 +08:00
Petri Lehtinen
5f39706b07
#14494 : Document that absolute imports became default in 3.0 instead of 2.7.
2012-05-19 18:36:04 +03:00
Ezio Melotti
6d9c1b1617
#14072 : Fix parsing of tel URIs in urlparse by making the check for ports stricter.
2012-05-19 17:12:17 +03:00
Senthil Kumaran
618802d55e
Fix Issue14721: Send Content-length: 0 for empty body () in the http.request
2012-05-19 16:52:21 +08:00
Senthil Kumaran
ea24dda01f
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
2012-05-19 08:10:40 +08:00
Petri Lehtinen
280e9f7ce5
#14798 : pyclbr now raises ImportError instead of KeyError for missing packages
2012-05-18 21:54:25 +03:00
R David Murray
6949392b56
#14832 : 'first' now really refers to first arg in unittest assertItemsEqual
...
This appears to have been a mixup introduced when we switched from
'expected/actual' to 'first/second'. The problem doesn't exist
in the corresponding assertCountEqual method in Python3.
2012-05-16 14:01:03 -04:00
Antoine Pitrou
38fbd799d1
Issue #14829 : Fix bisect issues under 64-bit Windows.
2012-05-16 15:01:40 +02:00
Ned Deily
724a55c525
Issue #14777 : In an X11 windowing environment, tkinter may return
...
undecoded UTF-8 bytes as a string when accessing the Tk clipboard.
Modify clipboad_get() to first request type UTF8_STRING when no
specific type is requested in an X11 windowing environment, falling
back to the current default type STRING if that fails.
Original patch by Thomas Kluyver.
2012-05-15 18:05:57 -07:00
Martin v. Löwis
fd0afed503
Upgrade openssl to 0.9.8x.
2012-05-15 17:26:31 +02:00
Senthil Kumaran
6a2a6c2ee3
Issue #12541 : Be lenient with quotes around Realm field with HTTP Basic Authentation in urllib2.
2012-05-15 22:24:10 +08:00
Ned Deily
acdc56d0d0
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:45:49 -07:00
Antoine Pitrou
c2b714ce21
Issue #14157 : Fix time.strptime failing without a year on February 29th.
...
Patch by Hynek Schlawack.
2012-05-10 20:17:46 +02:00
Jesus Cea
f2011e3e49
Closes #14768 : os.path.expanduser('~/a') doesn't works correctly when HOME is '/'
2012-05-10 05:01:11 +02:00
Antoine Pitrou
284fa08eb7
Issue #14761 : Fix potential leak on an error case in the import machinery.
2012-05-09 13:24:31 +02:00
Ezio Melotti
e48daea2a6
#14034 : added the argparse tutorial. Patch by Tshepang Lekhonkhobe.
2012-05-06 16:15:35 +03:00
Benjamin Peterson
042c47b2c7
fix calling the classmethod descriptor directly ( closes #14699 )
2012-05-01 09:51:09 -04:00
Senthil Kumaran
7f6d4e1926
issue13183 - Fix pdb skipping frames after hitting a breakpoint and running step. Patch by Xavier de Gaye
2012-05-01 10:36:28 +08:00
Antoine Pitrou
3815316714
Issue #14664 : It is now possible to use @unittest.skip{If,Unless} on a test class that doesn't inherit from TestCase (i.e. a mixin).
2012-04-25 17:31:12 +02:00
Lars Gustäbel
231d474a7b
Issue #14160 : TarFile.extractfile() failed to resolve symbolic links when
...
the links were not located in an archive subdirectory.
2012-04-24 22:42:08 +02:00
Benjamin Peterson
d157a4c3dd
don't use a slot wrapper from a different special method ( closes #14658 )
...
This also alters the fix to #11603 . Specifically, setting __repr__ to
object.__str__ now raises a recursion RuntimeError when str() or repr() is
called instead of silently bypassing the recursion. I believe this behavior is
more correct.
2012-04-24 11:06:25 -04:00
R David Murray
c313b1d9b0
#14638 : pydoc now treats non-str __name__ as None instead of raising
...
Original patch by Peter Otten.
2012-04-23 13:27:11 -04:00
Senthil Kumaran
4c20c4e198
news for issue13684
2012-04-23 23:52:40 +08:00
Antoine Pitrou
52849bfaa3
Issue #14308 : Fix an exception when a "dummy" thread is in the threading module's active list after a fork().
2012-04-19 23:55:01 +02:00
Ezio Melotti
c45868ec69
#14538 : HTMLParser can now parse correctly start tags that contain a bare /.
2012-04-18 19:08:41 -06:00
Benjamin Peterson
76605557ea
SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno ( closes #14612 )
2012-04-18 11:14:31 -04:00
Vinay Sajip
7e9c9d51b6
Issue #14452 : remove BOM insertion code.
2012-04-16 14:38:23 +01:00
Antoine Pitrou
9945a64a8b
Issue #14589 : Update certificate chain for sha256.tbs-internet.com, fixing a test failure in test_ssl.
2012-04-16 03:34:44 +02:00
Mark Dickinson
0407e96061
Issue 13496: Fix bisect.bisect overflow bug for large collections.
2012-04-15 16:43:19 +01:00
Mark Dickinson
9c0baf7202
Issue #13889 : On MSVC builds, set FPU control word at runtime for all string <-> float conversions. Patch by Samuel Iseli and Stefan Krah.
2012-04-15 15:19:06 +01:00
R David Murray
9955ad4eb7
#14399 : corrected news item
2012-04-13 21:27:00 -04:00
R David Murray
3f4ccbabaf
#14399 : zipfile now correctly handles comments added to empty zipfiles.
...
Patch by Serhiy Storchaka.
2012-04-12 18:42:47 -04:00
Charles-François Natali
0d3db3a815
Issue #14557 : Fix extensions build on HP-UX. Patch by Adi Roiban.
2012-04-12 19:11:54 +02:00
Antoine Pitrou
fa1d84107a
Issue #7978 : socketserver now restarts the select() call when EINTR is returned.
...
This avoids crashing the server loop when a signal is received.
Patch by Jerzy Kozera.
2012-04-09 00:47:24 +02:00
Antoine Pitrou
02a380105d
Issue #14505 : Fix file descriptor leak when deallocating file objects created with PyFile_FromString().
2012-04-05 14:07:52 +02:00
Benjamin Peterson
f73813a8bb
prevent writing to stderr from messing up the exception state ( closes #14474 )
2012-04-02 11:15:17 -04:00
Antoine Pitrou
fe9417726c
Issue #13019 : Fix potential reference leaks in bytearray.extend().
...
Patch by Suman Saha.
2012-04-01 16:05:46 +02:00
Antoine Pitrou
4b536d4771
Issue #14437 : Fix building the _io module under Cygwin.
2012-03-31 23:53:07 +02:00
Andrew Svetlov
8af872983f
update NEWS for 2.7 as Terry Reedy proposed
2012-03-31 14:34:16 +03:00
Andrew Svetlov
c37db10e03
Backport of Issue #14409 to 2.7
...
IDLE doesn't not execute commands from shell with default keybinding
for <Return>.
Patch by Roger Serwy.
2012-03-29 19:54:58 +03:00
krisvale
479c8f8c51
Issue #10538 - Update Misc/NEWS
2012-03-22 20:17:42 +00:00
Giampaolo Rodola'
96cb5d15c1
fix #10340 : properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.
2012-03-22 16:06:43 +01:00
Benjamin Peterson
72c6227df8
merge heads
2012-03-22 08:57:56 -04:00
Benjamin Peterson
eff19a13ed
check by equality for __future__ not identity ( closes #14378 )
2012-03-22 08:19:04 -04:00
R David Murray
b3f95d7ff1
#12757 : Make doctest skipping in -OO mode work with unittest/regrtest -v
2012-03-21 15:02:30 -04:00
Andrew Svetlov
7c010ee00c
#3573 : idle now doesn't hungs if launched as: idle -e <directory>
...
Patch by Guilherme Polo.
2012-03-21 13:35:08 +02:00
Giampaolo Rodola'
3d3cf48e53
Fix issue #13694 : asynchronous connect in asyncore.dispatcher does not set addr.
2012-03-20 16:46:57 +01:00
Gregory P. Smith
fcdf04becc
Fixes Issue #14331 : Use significantly less stack space when importing modules by
...
allocating path buffers on the heap instead of the stack.
2012-03-18 16:07:10 -07:00
Benjamin Peterson
dbc52f8a0d
check for string attribute names in old-style classes ( closes #14334 )
2012-03-16 10:58:46 -05:00
Benjamin Peterson
6e7832b04c
check to make sure the attribute is a string ( #14334 )
2012-03-16 09:32:59 -05:00
Senthil Kumaran
51a65c9161
2.7 - Issue #10484 : Fix the CGIHTTPServer's PATH_INFO handling problem
2012-03-16 01:07:16 -07:00
Senthil Kumaran
4c59211bd5
Fix the urllib closing issue which hangs on particular ftp urls/ftp servers. closes issue11199
2012-03-15 13:24:40 -07:00
Benjamin Peterson
f1acd0ab38
merge from 2.7 release branch
2012-03-15 13:01:04 -05:00
Benjamin Peterson
ee933eccc9
bump to 2.7.3rc2
2012-03-15 12:25:54 -05:00
Gregory P. Smith
d0e1a5b241
Fixes Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes
...
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.
2012-03-14 15:28:10 -07:00
Gregory P. Smith
c8ff46032f
Fixes Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes
...
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.
2012-03-14 15:28:10 -07:00
Martin v. Löwis
f163efd736
Issue #5219 : Prevent event handler cascade in IDLE.
...
Patch by Roger Serwy.
2012-03-13 14:46:22 -07:00
Ezio Melotti
11f8b6872a
#14161 : fix the __repr__ of file objects to escape the file name.
2012-03-12 01:17:02 +02:00
Antoine Pitrou
f60845b70a
Issue #14252 : Fix subprocess.Popen.terminate() to not raise an error under Windows when the child process has already exited.
2012-03-11 19:29:12 +01:00
Benjamin Peterson
a2aa2ef313
bump to 2.7.3rc1
2012-02-23 10:52:17 -05:00
Nadeem Vawda
f00011aff4
Issue #14053 : Fix "make patchcheck" to work with MQ.
...
Patch by Francisco Martín Brugué
2012-02-22 11:40:09 +02:00
Martin v. Löwis
a1b2af8034
Issue #6807 : Run msisupport.mak earlier.
2012-02-21 18:12:02 +01:00
Martin v. Löwis
ef281bdddb
Issue #10580 : Minor grammar change in Windows installer.
2012-02-21 17:07:32 +01:00
Petri Lehtinen
4ab701b2d3
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
...
Closes #8033 .
2012-02-21 14:04:46 +02:00
Ezio Melotti
36b7361fe7
HTMLParser is now able to handle slashes in the start tag.
2012-02-21 09:22:16 +02:00
Benjamin Peterson
aee9dfba4a
merge 2.6 with hash randomization fix
2012-02-20 21:44:56 -05:00
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
...
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00
Ned Deily
c5df563041
Issue #12627 : Implement PEP 394 for OS X framework builds.
...
OS X framework builds already created versioned symlinks for all
executables and scripts installed in the framework bin directory,
of the general form ${cmd} - ${cmd}2.7. The changes here add a
hierarchy of ${cmd} -> ${cmd}2 -> ${cmd}2.7. Per previous
practice, all of the links are created in the framework bin
directory for both the install and altinstall targets. This is
consistent with the long-standing recommendation to manage multiple
framework versions by adding and ordering framework bin directories
on $PATH. Also, per past practice, symlinks to all framework bin
entries are created in $prefix/bin (by default, /usr/local/bin)
for the install target and only versioned links are created for
altinstall, although the use of these links is not recommended
for framework builds and their installation is optional with
the standard OS X installers.
2012-02-19 02:19:12 +01:00
Charles-François Natali
e062466480
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 14:30:34 +01:00
Charles-François Natali
66f3cc6f8d
Issue #14001 : CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
...
upon malformed POST request.
2012-02-18 14:15:38 +01:00
Petri Lehtinen
437b149b0c
Fix a variable scoping error in an sqlite3 test
...
Initial patch by Torsten Landschoff.
Closes #11689 .
2012-02-17 21:34:45 +02:00
Petri Lehtinen
002b202009
Fix errors in sqlite3's Cursor.rowcount documentation
...
Closes #13995 .
2012-02-16 21:42:34 +02:00
Gregory P. Smith
14dc510395
news entry for previous commit
2012-02-16 00:44:50 -08:00
Antoine Pitrou
dd7e071b23
Issue #13014 : Fix a possible reference leak in SSLSocket.getpeercert().
2012-02-15 22:25:27 +01:00
Éric Araujo
e897a7472d
Fix parsing of build_ext --libraries option ( #1326113 )
2012-02-15 16:28:20 +01:00
Ezio Melotti
65d36dab4d
#13987 : HTMLParser is now able to handle malformed start tags.
2012-02-15 13:19:10 +02:00
Ezio Melotti
d2307cb48a
#13987 : HTMLParser is now able to handle EOFs in the middle of a construct.
2012-02-15 12:44:23 +02:00
Antoine Pitrou
c66ed457ef
Issue #13020 : Fix a reference leak when allocating a structsequence object fails.
...
Patch by Suman Saha.
2012-02-15 02:51:43 +01:00
Antoine Pitrou
c39cd783fb
Issue #13015 : Fix a possible reference leak in defaultdict.__repr__.
...
Patch by Suman Saha.
2012-02-15 02:42:46 +01:00
Meador Inge
ff337ccd4b
Issue #13979 : Fix ctypes.util.find_library ldconfig regex
2012-02-13 22:22:06 -06:00
Ezio Melotti
f117443cb8
#13993 : HTMLParser is now able to handle broken end tags.
2012-02-13 16:28:54 +02:00
Ezio Melotti
4b92cc3f79
#13960 : HTMLParser is now able to handle broken comments.
2012-02-13 16:10:44 +02:00
Gregory P. Smith
12426998ce
Issue #13930 : Adds ability for 2to3 to write its output to a different
...
directory tree instead of overwriting the input files. Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.
Feature backports into stable release branches for 2to3 are allowed by
a special exemption:
http://mail.python.org/pipermail/python-dev/2011-December/115089.html
2012-02-12 15:51:21 -08:00
Petri Lehtinen
587209f089
Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes
...
Closes #9750
2012-02-12 21:03:02 +02:00
Florent Xicluna
c227965cbd
Typo in Misc/NEWS.
2012-02-12 14:49:03 +01:00
Éric Araujo
6faad8de7f
Fix distutils.filelist.FileList under Windows ( #13193 ).
...
The code used to call os.path.join to build a regex but without escaping
the backslash, which lead to test failures on Windows. Antoine Pitrou
fixed it in 557a973709de by enhancing the code to accept both / and \,
with proper escaping, but in my opinion this goes against the distutils
feature freeze, hence this change.
2012-02-12 04:41:36 +01:00
Ned Deily
c47a459251
Issue #13994 : Earler partial revert of Distutils enhancements in 2.7
...
has left two versions of customize_compiler, the original in
distutils.sysconfig and another copy in distutils.ccompiler, with some
parts of distutils calling one and others using the other.
Complete the revert back to only having one in distutils.sysconfig as
is the case in 3.x.
2012-02-11 20:40:24 +01:00
Ned Deily
0d0ea48709
Issue #13590 : On OS X 10.7 and 10.6 with Xcode 4.2, building
...
Distutils-based packages with C extension modules may fail because
Apple has removed gcc-4.2, the version used to build python.org
64-bit/32-bit Pythons. If the user does not explicitly override
the default C compiler by setting the CC environment variable,
Distutils will now attempt to compile extension modules with clang
if gcc-4.2 is required but not found. Also as a convenience, if
the user does explicitly set CC, substitute its value as the default
compiler in the Distutils LDSHARED configuration variable for OS X.
(Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
SDK, neither of which are available in Xcode 4. This change does not
attempt to override settings to support their use with Xcode 4.)
2012-02-10 12:59:06 +01:00
Senthil Kumaran
59e7c8f177
Issue #9021 : Add an introduction to the copy module. Doc changes suggested by Terry Reedy.
2012-02-09 18:22:01 +08:00
Senthil Kumaran
607e31eddf
Fix Issue #6005 : Examples in the socket library documentation use sendall,
...
where relevant, instead send method. Patch contributed by Brian Brazil.
2012-02-09 17:43:31 +08:00
Petri Lehtinen
c7fd523ac5
Issue #10811 : Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.
2012-02-06 22:04:00 +02:00
Ned Deily
2c8bf04308
Issue #10881 : Fix test_site failures with OS X framework builds.
2012-02-06 00:55:50 +01:00
Terry Jan Reedy
adb87e2677
Issue 964437 Make IDLE help window non-modal.
...
Patch by Guilherme Polo and Roger Serwy.
2012-02-05 15:10:55 -05:00
Ned Deily
61c9534363
Issue #13933 : IDLE auto-complete did not work with some imported
...
module, like hashlib. (Patch by Roger Serwy)
2012-02-04 18:35:23 +01:00
Ned Deily
fbc56fde26
Issue #13901 : Prevent test_distutils failures on OS X with --enable-shared.
2012-02-03 02:39:49 +01:00
Petri Lehtinen
fe6f9d0edc
Document absoluteness of sys.executable
...
Closes #13402 .
2012-02-02 21:26:05 +02:00
Petri Lehtinen
0518f470b1
sqlite3: Handle strings with embedded zeros correctly
...
Closes #13676 .
2012-02-01 22:20:13 +02:00
Terry Jan Reedy
b98000ab5b
#13506 Add '' to path for interactive interpreter by adding with_cwd parameter
...
to PyShell.PyShell.transfer_path() and changing elsewhere as needed.
Original patches by Marco Scataglini and Roger Serwy.
2012-01-31 02:09:25 -05:00
Antoine Pitrou
88c51e8cb1
Issue #13806 : The size check in audioop decompression functions was too strict and could reject valid compressed data.
...
Patch by Oleg Plakhotnyuk.
2012-01-28 22:01:59 +01:00
Antoine Pitrou
374b4ea9da
Issue #13885 : CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
2012-01-27 09:44:08 +01:00
Antoine Pitrou
d358e0554b
Issue #13885 : CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
2012-01-27 09:42:45 +01:00
Brett Cannon
64b2b6a84d
Issue #13883 : Document all platforms PYTHONCASEOK works on.
2012-01-26 18:32:24 -05:00
Florent Xicluna
a1f948bdec
Issue #12501 : merge the discordant NEWS entries.
2012-01-24 21:05:10 +01:00
Antoine Pitrou
d1c818a9c0
Issue #11235 : Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
2012-01-24 17:44:06 +01:00
Senthil Kumaran
b05f91d155
NEWS entry for Issue6631
2012-01-21 11:45:12 +08:00
Meador Inge
da747c3d97
Issue #2134 : Clarify token.OP handling rationale in tokenize documentation.
2012-01-19 00:17:44 -06:00
Nadeem Vawda
d7664dee0c
Issue #13781 : Fix GzipFile to work with os.fdopen()'d file objects.
2012-01-19 00:40:46 +02:00
Jesus Cea
4a8ba19783
Closes #13803 : Under Solaris, distutils doesn't include bitness in the directory name
2012-01-18 03:51:38 +01:00
Antoine Pitrou
3b6a31412f
Issue #13589 : Fix some serialization primitives in the aifc module.
...
Patch by Oleg Plakhotnyuk.
2012-01-17 17:13:04 +01:00
Jesus Cea
23fbd8ccb1
Berkeley DB: Erratic behaviour of "DBEnv->rep_elect()" because a typo
2012-01-17 00:17:10 +01:00
Benjamin Peterson
a84f468cf1
move notes for 2.7.4 to the right place
2012-03-07 19:17:57 -06:00
Benjamin Peterson
a8d458560e
allow cycles throught the __dict__ slot to be cleared ( closes #1469629 )
...
Patch from Armin, test from me.
2012-03-07 18:41:11 -06:00
Éric Araujo
ec17afdfda
Backout buggy patch for #13719
2012-03-07 21:00:44 +01:00
Éric Araujo
dcd280480f
Make distutils’ upload command work with bdist_msi products ( #13719 ).
...
Patch by Ralf Schmitt.
2012-03-05 16:47:33 +01:00
Meador Inge
104f18977f
Issue #14195 : Make WeakSet.__lt__ and WeakSet.__gt__ irreflexive.
2012-03-04 22:02:17 -06:00
Petri Lehtinen
a15a8d2a0c
sqlite3: Port relevant documentation changes from 3.2
...
Initial patch by Johannes Vogel. Issue #13491 .
2012-03-01 21:48:30 +02:00
Antoine Pitrou
c56bca31e9
Issue #14159 : Fix the len() of weak sets to return a better approximation when some objects are dead or dying.
...
Moreover, the implementation is now O(1) rather than O(n).
Thanks to Yury Selivanov for reporting.
2012-03-01 16:26:35 +01:00
Antoine Pitrou
6a1cd1b3b1
Issue #13521 : dict.setdefault() now does only one lookup for the given key, making it "atomic" for many purposes.
...
Patch by Filip Gruszczyński.
2012-02-27 00:45:12 +01:00
Éric Araujo
d673b62bac
Stop ignoring RPMs in distutils' upload command ( #2945 ).
...
Bug reported by Hartmut Goebel and patch contributed by Carl Robben.
Untested backport of the fix committed and tested for 3.2.
2012-02-26 01:16:47 +01:00
Éric Araujo
e84e263a84
Add test file for scripts in Tools ( #13447 ).
...
When people find bugs in scripts such as reindent.py, msgfmt.py or
pygettext.py, we have to try to reproduce the bug manually, apply a fix
and test manually again. The alternative is to only read the code and
trust that it works. This test file is a way to stop that
unsatisfactory state of things and write proper unit tests instead.
2012-02-25 16:24:59 +01:00
Éric Araujo
31378df83a
Fix long-standing bugs with MANIFEST.in parsing on Windows ( #6884 ).
...
These regex changes fix a number of issues for distutils on Windows:
- #6884 : impossible to include a file starting with 'build'
- #9691 and #14004 : sdist includes too many files
- #13193 : test_filelist failures
This commit replaces the incorrect changes done in 557a973709de,
c566a3447ba1 and 3925081a7ca0 to fix #13193 ; we were too eager to fix
the test failures and I did not study the code enough before
greenlighting patches. This time we have unit tests from the problems
reported by users to be sure we have the right fix.
Thanks to Nadeem Vawda for his help.
2012-02-25 16:13:53 +01:00
Amaury Forgeot d'Arc
dee76e627d
Issue #13774 : json: Fix a SystemError when a bogus encoding is passed to
...
json.loads().
2012-01-13 22:53:25 +01:00
Senthil Kumaran
bcd833f30f
- Issue #13642 : Unquote before b64encoding user:password during Basic
...
Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù.
2012-01-11 00:09:24 +08:00
Antoine Pitrou
d76088d972
Issue #13636 : Weak ciphers are now disabled by default in the ssl module
...
(except when SSLv2 is explicitly asked for).
2012-01-03 22:46:48 +01:00
Charles-François Natali
3aa59e327c
Issue #9975 : socket: Fix incorrect use of flowinfo and scope_id. Patch by
...
Vilmos Nebehaj.
2012-01-02 15:38:27 +01:00
Jason R. Coombs
042370e750
Issue #11638 : Adding test to ensure .tar.gz files can be generated by sdist command with unicode metadata, based on David Barnett's patch.
...
Issue #11638 : Added tests to capture failures in make_tarball with various unicode strings.
Following fix for Issue #13639 , these tests now pass.
2011-12-26 10:15:15 -05:00
Senthil Kumaran
84c18aaa4c
Update News entry.
2011-12-23 11:14:56 +08:00
Lars Gustäbel
7d4d074c99
Issue #13639 : Accept unicode filenames in tarfile.open(mode="w|gz").
...
Passing a unicode filename to tarfile.open() along with mode "w|gz" failed
with a UnicodeError because the filename was not encoded properly before being
written to the gzipped stream in the FNAME extra field.
2011-12-21 19:27:50 +01:00
Antoine Pitrou
b8572a1673
Issue #1785 : Fix inspect and pydoc with misbehaving descriptors.
...
Also fixes issue #13581 : `help(type)` wouldn't display anything.
2011-12-21 10:16:14 +01:00
Victor Stinner
99cff3f182
Issue #13628 : python-gdb.py is now able to retrieve more frames in the Python
...
traceback if Python is optimized.
* delay the lookup of the size_t type, it is not available at startup
* The second argument of the PyFrameObjectPtr constructor is optional, as
done in other constructors
* iter_builtins() and iter_globals() methods of PyFrameObjectPtr returns
an empty tuple instead of None if Python is optimized
* Fix py-bt to handle correctly "optimized" frames
* Frame.get_pyop() tries to get the frame pointer from PyEval_EvalCodeEx()
if the pointer is optimized out in PyEval_EvalFrameEx()
2011-12-19 13:59:58 +01:00
Antoine Pitrou
7a3d8aee8c
Issue #7502 : Fix equality comparison for DocTestCase instances.
...
Patch by Cédric Krier.
2011-12-18 19:27:45 +01:00
Charles-François Natali
41616300b1
Issue #11870 : threading: Properly reinitialize threads internal locks and
...
condition variables to avoid deadlocks in child processes.
2011-12-18 18:22:24 +01:00
Charles-François Natali
f3d35f0efe
Issue #8035 : urllib: Fix a bug where the client could remain stuck after a
...
redirection or an error.
2011-12-18 15:52:48 +01:00
Antoine Pitrou
5b4b2da55d
Fix the fix for issue #12149 : it was incorrect, although it had the side
...
effect of appearing to resolve the issue. Thanks to Mark Shannon for
noticing.
2011-12-15 14:15:31 +01:00
Ned Deily
d8fdbad881
Issue #4625 : add NEWS entry.
2011-12-14 15:05:42 -08:00
Raymond Hettinger
f537702732
Issue #13573 : The csv.writer now uses the repr() for floats rather than str().
2011-12-11 22:31:09 -08:00
Amaury Forgeot d'Arc
4bf21e28df
Issue #13546 : Fixed an overflow issue that could crash the intepreter when
...
calling sys.setrecursionlimit((1<<31)-1).
2.7 only.
2011-12-07 21:46:48 +01:00
Lars Gustäbel
9a38863d8c
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 13:07:09 +01:00
Meador Inge
5295718399
Issue #13513 : IOBase docs incorrectly link to the readline module
2011-12-03 12:13:42 -06:00
Petri Lehtinen
49e49a218c
Issue #13439 : Fix many errors in turtle docstrings.
2011-12-02 21:22:53 +02:00
Antoine Pitrou
a5d5bb997b
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Antoine Pitrou
aa1c967f93
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
...
Patch by Robert Xiao.
2011-11-23 01:39:19 +01:00
Victor Stinner
53853c3fa9
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:20:13 +01:00
Antoine Pitrou
5aa7df320f
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Ezio Melotti
00dc60beee
#13358 : HTMLParser now calls handle_data only once for each CDATA.
2011-11-18 18:00:40 +02:00
Ezio Melotti
93bbb6a9a6
#4147 : minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.
2011-11-18 17:30:28 +02:00
Ned Deily
174c4f897f
Issue #8793 : Prevent IDLE crash in 2.7 when given strings with
...
invalid hex escape sequences.
2011-11-15 18:29:02 -08:00
Antoine Pitrou
30402549de
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:49:40 +01:00
Ezio Melotti
0f1571ce7f
#1745761 , #755670 , #13357 , #12629 , #1200313 : improve attribute handling in HTMLParser.
2011-11-14 18:04:05 +02:00
Antoine Pitrou
667383c8d4
Issue #13193 : Fix distutils.filelist.FileList under Windows. The
...
"recursive-include" directive now recognizes both legal path separators.
2011-11-12 01:33:59 +01:00
Antoine Pitrou
6a570d6b9a
Issue #13373 : multiprocessing.Queue.get() could sometimes block indefinitely
...
when called with a timeout. Patch by Arnaud Ysmal.
2011-11-10 00:33:50 +01:00
Jesus Cea
cb65f3249a
Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:06:44 +01:00
Jesus Cea
71094b5d5b
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 15:54:42 +01:00
Petri Lehtinen
3b9d92aefe
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 20:59:01 +02:00
Benjamin Peterson
a5ae1f0c25
remove py3k warning for callable
2011-11-06 08:20:12 -05:00
Petri Lehtinen
819d8d447d
Accept None as start and stop parameters for list.index() and tuple.index()
...
Closes #13340 .
2011-11-05 23:18:06 +02:00
Petri Lehtinen
416ecffcc4
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:18:50 +02:00
Petri Lehtinen
49aa72ed4c
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:50:37 +02:00
Florent Xicluna
5f761d79c0
Issue #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:15:57 +01:00
Florent Xicluna
c4a11bd1d5
Missing NEWS entry in changeset e1dde980a92c
2011-11-01 23:47:46 +01:00
Ezio Melotti
7e82b276dd
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:09:56 +02:00
Ned Deily
1aacd7bb02
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:14:52 -07:00
Senthil Kumaran
87e585581d
Port to 2.7 - issue 10817 - Fix urlretrieve function to raise
...
ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 02:44:45 +08:00
Ned Deily
86d669bdb8
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
...
(Patch by Roger Serwy)
2011-10-30 19:58:04 -07:00
Petri Lehtinen
8028dc215c
Add Misc/NEWS entry for issue #10519
2011-10-30 21:12:17 +02:00
Florent Xicluna
67d5d0ed44
Closes #7334 : close source files on ElementTree.parse and iterparse (partial backport of issue #10093 from 3.2).
2011-10-29 03:38:56 +02:00
Barry Warsaw
bf0cafa773
Oops, put fix news in the right section.
2011-10-28 16:16:58 -04:00
Barry Warsaw
be83698f21
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 16:14:44 -04:00
Benjamin Peterson
0c0d756098
don't let a tuple msg be interpreted as arguments to AssertionError ( closes #13268 )
2011-10-27 08:21:59 -04:00
Vinay Sajip
c515eba9ff
Updated NEWS with fix for 13232.
2011-10-24 23:26:00 +01:00
Petri Lehtinen
99e93d2dde
merge heads
2011-10-24 21:29:20 +03:00
Petri Lehtinen
8ffbab8d02
Issue #13018 : Fix reference leaks in error paths in dictobject.c.
...
Patch by Suman Saha.
2011-10-24 20:59:29 +03:00
Charles-François Natali
46f990e58c
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:43:51 +02:00
Nick Coghlan
8671157863
Issue #13237 : Rearrange subprocess module documentation to emphasise the convenience functions and commonly needed arguments
2011-10-24 22:19:40 +10:00
Florent Xicluna
df10d7cb97
Issue #13141 : Demonstrate recommended style for SocketServer examples.
2011-10-23 23:07:22 +02:00
Éric Araujo
b21f51a9d0
Note that the #1548891 fix indirectly fixes shlex ( #6988 , #1170 )
2011-10-23 04:37:51 +02:00
Antoine Pitrou
5a77fe92bd
Issue #1548891 : The cStringIO.StringIO() constructor now encodes unicode
...
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.
2011-10-22 21:26:01 +02:00
Florent Xicluna
47fb192dda
Issue #9168 : now smtpd is able to bind privileged port.
2011-10-20 23:21:58 +02:00
Senthil Kumaran
797b95b4af
News entry for Issue12529 and Issue12604
2011-10-21 00:32:59 +08:00
Senthil Kumaran
ddd40312d5
Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:38:35 +08:00
Łukasz Langa
7a15390f83
Fixes #10860 : Handle empty port after port delimiter in httplib
...
Thanks, Shawn Ligocki!
3.x version will come as a separate patch.
2011-10-18 17:16:00 +02:00
Nadeem Vawda
deb1ce7b95
Issue #13194 : zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
2011-10-17 19:33:38 +02:00
Mark Hammond
323b5daa10
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:05:36 +11:00
Benjamin Peterson
a7b0976c3e
PyEval_CallObject requires a tuple of args ( closes #13186 )
2011-10-15 13:43:21 -04:00
Nadeem Vawda
36248154a9
Issue #13159 : Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.
...
Also fix the builtin file class and the bz2 module, which used the same algorithm.
2011-10-13 13:52:46 +02:00
Charles-François Natali
40ab00233e
Issue #13156 : Add an entry in Misc/NEWS.
2011-10-12 22:29:09 +02:00
Éric Araujo
017e535bde
Fix distutils’ check and register Unicode handling ( #13114 ).
...
The check command was fixed by Kirill Kuzminykh.
The register command was using StringIO.getvalue, which uses “''.join”
and thus coerces to str using the default encoding (ASCII), so I changed
the code to use one extra intermediary list and correctly encode to
UTF-8.
2011-10-09 07:11:19 +02:00
Ned Deily
bd9d07c1dd
Issue #7425 and Issue #7367 : add NEWS items.
2011-10-06 14:29:49 -07:00
Charles-François Natali
9ffcbf71a5
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-06 19:09:45 +02:00
Antoine Pitrou
ace2ccf387
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:38:04 +02:00
Antoine Pitrou
561a821e93
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:34:48 +02:00
Meador Inge
ad349a190e
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:34:04 -05:00
Charles-François Natali
564f89036f
Issue #13058 : ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
...
Jarosch.
2011-09-29 19:43:01 +02:00
Meador Inge
fe15003680
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:35:28 -05:00
Mark Dickinson
a96b0d119d
Backport issue #12973 itertools fix from 3.x.
2011-09-24 09:01:16 +01:00
Victor Stinner
63c22fac72
Issue #7732 : Fix a crash on importing a module if a directory has the same name
...
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
2011-09-23 19:37:03 +02:00
Victor Stinner
51b719814e
Issue #12931 : xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
...
failing with a UnicodeDecodeError.
2011-09-23 01:15:32 +02:00
Jesus Cea
c23484b21f
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:47:39 +02:00
Mark Dickinson
4ac5d2cda4
Backport issue #12973 list_repeat fix from 3.x.
2011-09-19 19:23:55 +01:00
Mark Dickinson
dbbed04941
Issue #12973 : Fix int.__pow__ overflow checks that invoked undefined behaviour, thereby producing incorrect results on Clang.
2011-09-19 16:38:08 +01:00
Jesus Cea
d256ca12c1
Close #13007 : whichdb should recognize gdbm 1.9 magic numbers
2011-09-19 16:57:18 +02:00
Amaury Forgeot d'Arc
439c25eb9e
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 20:12:09 +02:00
Éric Araujo
dcdc3ef5fa
Branch merge
2011-09-12 17:47:48 +02:00
Éric Araujo
a13cd39533
Fix determination of Metadata version ( #8933 ). Patch by Filip Gruszczyński.
2011-09-10 05:39:45 +02:00
Jesus Cea
6ebaca137f
NEWS
2011-09-10 04:35:18 +02:00
Éric Araujo
ab08da0a1c
Branch merge
2011-09-05 17:45:48 +02:00
Lars Gustäbel
8babfdfd45
Issue #12841 : Fix tarfile extraction of non-existent uids/gids.
...
tarfile unnecessarily checked the existence of numerical user and group ids on
extraction. If one of them did not exist the respective id of the current user
(i.e. root) was used for the file and ownership information was lost. (Patch
by Sebastien Luttringer)
2011-09-05 17:04:18 +02:00
Éric Araujo
0f2dbf3645
Warn instead of crashing because of invalid path in MANIFEST.in ( #8286 ).
...
sdist used to crash with a full traceback dump instead of printing a
nice warning with the faulty line number.
2011-09-03 00:47:07 +02:00
Amaury Forgeot d'Arc
cf316a171e
Issue #12764 : Fix a crash in ctypes when the name of a Structure field is not
...
a string.
2011-09-02 20:32:23 +02:00
Amaury Forgeot d'Arc
3d7f236329
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
...
some functions like file.write().
2011-08-30 21:04:35 +02:00
Éric Araujo
429b890561
Make bdist_* commands respect --skip-build passed to bdist ( #10946 )
2011-08-30 01:48:59 +02:00
Charles-François Natali
fda7b379ac
Issue #12287 : Fix a stack corruption in ossaudiodev module when the FD is
...
greater than FD_SETSIZE.
2011-08-28 16:22:33 +02:00
Nadeem Vawda
bbabbae114
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:23:57 +02:00
Charles-François Natali
2a34eb3104
Issue #12786 : Set communication pipes used by subprocess.Popen CLOEXEC to avoid
...
them being inherited by other subprocesses.
2011-08-25 21:20:54 +02:00
Antoine Pitrou
77657e40fa
Issue #4106 : Fix occasional exceptions printed out by multiprocessing on interpreter shutdown.
...
This bug doesn't seem to exist on 3.2, where daemon threads are killed
before Py_Finalize() is entered.
2011-08-24 22:41:05 +02:00
Antoine Pitrou
a1a8da8bf5
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:54:20 +02:00
Charles-François Natali
cdaafe0f9e
Issue #12821 : Fix test_fcntl failures on OpenBSD 5.
2011-08-23 19:42:02 +02:00
Antoine Pitrou
808cec536a
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on io.BufferedRandom streams.
2011-08-20 15:40:58 +02:00
Victor Stinner
acacbaa788
Issue #12326 : sys.platform is now always 'linux2' on Linux
...
Even if Python is compiled on Linux 3.
2011-08-20 14:02:38 +02:00
Éric Araujo
e7329f47e7
Guard shutil._make_archive against a logger=None argument.
...
Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.
2011-08-19 03:07:39 +02:00
Charles-François Natali
b02302c5cf
Issue #12650 : Fix a race condition where a subprocess.Popen could leak
...
resources (FD/zombie) when killed at the wrong time.
2011-08-18 17:18:28 +02:00
Barry Warsaw
39935f4ab8
NEWS entry.
2011-08-15 19:50:35 -04:00
Ezio Melotti
15d6b65ead
#12266 : Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.
2011-08-15 09:22:24 +03:00
Senthil Kumaran
f432aeca7c
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:31:59 +08:00
Éric Araujo
33af263d36
Fix incorrect mtime comparison in distutils ( #11933 ).
...
This is a regression introduced in 9211a5d7d0b4, when uses of ST_MTIME
constants were changed to uses of st_mtime attributes. As diagnosed in
the bug report, this change is not merely stylistic: st_mtime is a
float but ST_MTIME’s resolution is rounded to the seconds, so there was
a mismatch between the values seen by file_util and dep_util which
caused an sdist to be unnecessarily created a second time on an ext4
filesystem.
This patch has been tested by John S. Gruber, who reported the bug.
As this is a simple code revert, I think it’s okay to commit without a
unit test.
2011-08-02 03:16:12 +02:00
Éric Araujo
498da2c162
Stop trying to write into the stdlib during lib2to3 tests ( #12331 ).
...
This prevents tests from failing when run from a Python installed in a
read-only directory.
2011-07-31 17:59:28 +02:00
Éric Araujo
560bf855d3
Fix regression with distutils MANIFEST handing ( #11104 , #8688 ).
...
The changed behavior of sdist in 2.7 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 (d29399100973 by Tarek and
f7639dcdffc3 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 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. I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.
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 02:04:00 +02:00
Éric Araujo
9a528306b9
Make “pydoc somebuiltin.somemethod” work ( #8887 )
2011-07-29 17:34:35 +02:00
Raymond Hettinger
55e5e27b74
Issue 12514: Use try/finally to assure that timeit restores GC when done.
2011-07-28 23:56:38 -07:00
Jason R. Coombs
fee7745ebb
Fixes #10639 : reindent.py should not convert newlines
...
Backport of changeset 070dc6e359fb, reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.
2011-07-27 14:05:37 -04:00
Charles-François Natali
0cf7e25c28
- Issue #12603 : Fix pydoc.synopsis() on files with non-negative st_mtime.
2011-07-27 19:36:40 +02:00
Ross Lagerwall
d8e3901478
Issue #12607 : In subprocess, fix issue where if stdin, stdout or stderr is
...
given as a low fd, it gets overwritten.
2011-07-27 18:54:53 +02:00
Ned Deily
d8b1723965
Issue #12590 : IDLE editor window now always displays the first line
...
when opening a long file. With Tk 8.5, the first line was hidden.
2011-07-26 18:16:08 -07:00
Ross Lagerwall
528c4adc0b
Issue #12102 : Document that buffered files must be flushed before being used
...
with mmap. Patch by Steffen Daode Nurpmeso.
2011-07-25 07:23:58 +02:00
Charles-François Natali
3de8c73d90
Issue #12560 : Build libpython.so on OpenBSD. Patch by Stefan Sperling.
2011-07-24 22:33:35 +02:00
Antoine Pitrou
4cfae027b3
Issue #1813 : Fix codec lookup and setting/getting locales under Turkish locales.
2011-07-24 02:51:01 +02:00
Nadeem Vawda
0d2889f56c
Fix typo in NEWS entry for dbf1e1a27427.
2011-07-23 16:13:01 +02:00
Nadeem Vawda
b42c53e442
Issue #10883 : Fix socket leaks in urllib.request.
...
* ftpwrapper now uses reference counting to ensure that the underlying socket
is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs
Initial patch by Victor Stinner.
2011-07-23 15:51:16 +02:00
Charles-François Natali
97781b0b64
Issue #12592 : Make Python build on OpenBSD 5 (and future major releases).
2011-07-22 23:43:42 +02:00
Benjamin Peterson
6c18ff0808
news note
2011-07-22 10:41:44 -05:00
Charles-François Natali
4929eb911b
Issue #12372 : POSIX semaphores are broken on AIX: don't use them.
2011-07-21 19:41:04 +02:00
Barry Warsaw
a4c383b8b3
Upstream merge.
2011-07-19 19:28:16 -04:00
Antoine Pitrou
495ee8f563
Issue #12571 : Add a plat-linux3 directory mirroring the plat-linux2 directory,
...
so that "import DLFCN" and other similar imports work on Linux 3.0.
2011-07-20 00:26:23 +02:00
Barry Warsaw
c56432804a
- Issue #10309 : Define _GNU_SOURCE so that mremap() gets the proper
...
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
2011-07-19 17:06:30 -04:00
R David Murray
9522595d70
#7484 : no more <> around addresses in VRFY or EXPN
...
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
2011-07-18 21:34:04 -04:00
Antoine Pitrou
304f0f952d
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:22:50 +02:00
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
2011-07-15 14:15:40 -05:00
Charles-François Natali
2659140a5d
Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:49:02 +02:00
Ned Deily
0ab67ee79e
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:05:31 -07:00
Victor Stinner
bf547fd3f2
Close #4376 : ctypes now supports nested structures in a endian different than
...
the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:47:31 +02:00
Antoine Pitrou
1616645a00
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 22:04:20 +02:00
Antoine Pitrou
4a4a0fed07
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:34:05 +02:00
Antoine Pitrou
2960308c0c
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:40:15 +02:00
Antoine Pitrou
a4d58d26a1
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:14:19 +02:00
Victor Stinner
ba8b3a2ca7
Close #12501 : Adjust callable() warning: callable() is only not supported in
...
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Victor Stinner
e790131dc6
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner
59729ff609
Issue #9611 , #9015 : FileIO.read(), FileIO.readinto(), FileIO.write() and
...
os.write() clamp the length to INT_MAX on Windows.
2011-07-05 11:28:19 +02:00
Ned Deily
46268c49f6
Issue #8716 : Avoid crashes caused by Aqua Tk on OSX when attempting to run
...
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:52:35 -07:00
Victor Stinner
65c153547b
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 03:05:37 +02:00
Charles-François Natali
414d0faedc
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 13:56:19 +02:00
Raymond Hettinger
bf7a266074
Fixup repr for dict_proxy objects.
2011-06-30 00:44:36 +01:00
Ned Deily
87e82bb0e3
Issue #9516 : Update Misc/NEWS.
2011-06-28 19:52:59 -07:00
Ned Deily
63144c6444
Issue #12141 : Install a copy of template C module file so that
...
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
2011-06-28 00:39:19 -07:00
Ned Deily
43e1054e38
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-27 23:41:53 -07:00
Ned Deily
64e59959f2
Issue #10736 : Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
...
on Mac OS X. (Patch by Ronald Oussoren)
2011-06-27 23:09:31 -07:00
Raymond Hettinger
2c316a3e29
Issue 11802: filecmp cache was growing without bound.
2011-06-25 17:14:53 +02:00
Ross Lagerwall
ffa8e2fb56
Issue 12404: Remove C89 incompatible code from mmap module.
...
Patch by Akira Kitada.
2011-06-25 09:55:10 +02:00
Victor Stinner
ecb863b29e
Revert d370d609d09b as requested by Terry Jan Reedy:
...
"#3067 : locale.setlocale() accepts a Unicode locale."
2011-06-20 22:07:06 +02:00
Victor Stinner
c36c6ccb41
Close #3067 : locale.setlocale() accepts a Unicode locale.
2011-06-20 16:14:48 +02:00
R David Murray
f1138bb1b6
#11700 : proxy object close methods can now be called multiple times
...
This makes them work like the close provided by regular file objects. This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
2011-06-17 22:23:04 -04:00
Victor Stinner
c74a6ba2d6
Issue #12133 : AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
...
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Benjamin Peterson
0eb4ac4c62
allow "fake" filenames in findsource ( closes #9284 )
...
This allows findsource() to work in doctests.
A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson
a573e0df36
merge 2.7.2 release branch
2011-06-11 09:51:21 -05:00
Benjamin Peterson
9843ba5e54
bump to 2.7.2 final
2011-06-11 09:42:44 -05:00
Benjamin Peterson
b30d5c711e
merge heads
2011-06-10 11:33:58 -05:00
Benjamin Peterson
8b8162d868
merge 2.7.2 release branch with fix for #12009
2011-06-10 11:33:41 -05:00
Benjamin Peterson
43ee1a5d90
fix regression in netrc comment handling ( closes #12009 )
2011-06-10 11:32:52 -05:00
R David Murray
873c583244
#10694 : zipfile now ignores garbage at the end of a zipfile.
...
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 16:01:09 -04:00