Martin v. Löwis
bea1c70144
Bug #1566280 : Explicitly invoke threading._shutdown from Py_Main,
...
to avoid relying on atexit.
2007-01-04 21:06:57 +00:00
Raymond Hettinger
ca516d21ab
Fix stability of heapq's nlargest() and nsmallest().
2007-01-04 17:53:16 +00:00
Raymond Hettinger
9cdf70399f
For sets with cyclical reprs, emit '...' instead of recursing.
2006-12-29 18:49:13 +00:00
Thomas Wouters
04e820443b
Backport trunk checkin r51565:
...
Fix SF bug #1545837 : array.array borks on deepcopy. array.__deepcopy__()
needs to take an argument, even if it doesn't actually use it.
2006-12-29 14:42:17 +00:00
Neal Norwitz
e38ecee5c3
SF bug #1623890 , fix argument name in docstring
2006-12-29 03:01:06 +00:00
Lars Gustäbel
f9a2c63c79
Patch #1504073 : Fix tarfile.open() for mode "r" with a fileobj argument.
...
Backport from rev. 53161.
2006-12-27 10:36:58 +00:00
Lars Gustäbel
12e087a1b1
Patch #1262036 : Prevent TarFiles from being added to themselves under
...
certain conditions.
(backport from rev. 53155)
Moved message from my previous change to the right place in
Misc/NEWS.
2006-12-23 18:13:57 +00:00
Lars Gustäbel
aedb92e59c
Patch #1230446 : tarfile.py: fix ExFileObject so that read() and tell()
...
work correctly together with readline().
(backport from rev. 53153)
2006-12-23 16:51:47 +00:00
Andrew M. Kuchling
60775f29de
[Patch #827559 from Chris Gonnerman] Make SimpleHTTPServer redirect when a directory URL is missing the trailing slash; this lets relative links work.
2006-12-22 19:08:41 +00:00
Andrew M. Kuchling
bbad84b41a
[Bug #737202 ; fix from Titus Brown] Make CGIHTTPServer work for scripts in sub-directories
2006-12-22 13:28:43 +00:00
Raymond Hettinger
5425a67331
Bug #1590891 : random.randrange don't return correct value for big number
2006-12-20 07:43:59 +00:00
Andrew M. Kuchling
df6994db84
[Patch #1600491 from Jim Jewett] Describe how to build help files on Windows
2006-12-19 15:19:14 +00:00
Andrew M. Kuchling
0faf90acc4
[Patch #1617413 from Dug Song] Fix HTTP Basic authentication via HTTPS
2006-12-19 15:12:23 +00:00
Andrew M. Kuchling
a75d31619c
[Patch #1599256 from David Watson] check that os.fsync is available before using it
2006-12-14 18:59:07 +00:00
Vinay Sajip
4d7ad63210
Stripped whitespace from comma-separated values read from config file
2006-12-14 08:41:39 +00:00
Georg Brandl
9e2423ae8f
Move errno imports back to individual functions.
...
(backport from rev. 52996)
2006-12-11 07:56:43 +00:00
Georg Brandl
2bcf0154d5
Patch #1608267 : fix a race condition in os.makedirs() is the directory
...
to be created is already there.
(backport from rev. 52972)
2006-12-09 09:10:18 +00:00
Thomas Heller
db386544ed
Print the results of ctypes.util.find_library("c") and
...
ctypes.util.find_library("m") so that we can see if it works on the
buildbots.
2006-12-08 20:44:19 +00:00
Raymond Hettinger
775ebe29a5
Backport fixes to set objects:
...
rev 52964 sf 1576657 KeyError unpacks tuple arguments
rev 52963 sf 1456209 obscure resizing vulnerability
rev 52962 redundant calls to PyObject_Hash()
2006-12-08 18:12:24 +00:00
Georg Brandl
25f58f6b5a
Patch #1610437 : fix a tarfile bug with long filename headers.
...
(backport from rev. 52938)
2006-12-06 22:21:23 +00:00
Matthias Klose
fa713e18f6
- Fix build failure on kfreebsd and on the hurd.
2006-12-03 17:13:54 +00:00
Raymond Hettinger
1c305dbf97
Fix nit in comment.
2006-12-02 01:57:21 +00:00
Georg Brandl
2286441a81
Bug #1603321 : make pstats.Stats accept Unicode file paths.
...
(backport from rev. 52845)
2006-11-26 19:27:51 +00:00
Thomas Heller
558e56d599
Fix bug #1598620 : A ctypes structure cannot contain itself.
...
Backport from trunk.
2006-11-24 19:00:39 +00:00
Walter Dörwald
9ff1d39402
Backport checkin:
...
Change decode() so that it works with a buffer (i.e. unicode(..., 'utf-8-sig'))
SF bug #1601501 .
2006-11-23 05:06:31 +00:00
Neal Norwitz
88b5d2bf30
Oops, convert tabs to spaces
2006-11-21 05:49:41 +00:00
Neal Norwitz
5890a6a8a6
Backport of 52811:
...
Bug #1599782 : Fix segfault on bsddb.db.DB().type().
The problem is that _DB_get_type() can't be called without the GIL
because it calls a bunch of PyErr_* APIs when an error occurs.
There were no other cases in this file that it was called without the GIL.
Removing the BEGIN/END THREAD around _DB_get_type() made everything work.
2006-11-21 05:29:34 +00:00
Andrew M. Kuchling
bb4e6dcff5
Jython compatibility fix: if uu.decode() opened its output file, be sure to
...
close it.
2006-11-20 13:39:57 +00:00
Andrew M. Kuchling
90e23c4769
Add extra SHA tests
2006-11-20 13:31:09 +00:00
Martin v. Löwis
0e64202fd7
Patch #1472877 : Fix Tix subwidget name resolution.
2006-11-18 18:42:22 +00:00
Martin v. Löwis
e350c840b3
Patch #1594554 : Always close a tkSimpleDialog on ok(), even
...
if an exception occurs.
2006-11-18 18:05:57 +00:00
Martin v. Löwis
ce9212f018
Patch #1538878 : Don't make tkSimpleDialog dialogs transient if
...
the parent window is withdrawn. This mirrors what dialog.tcl
does.
2006-11-18 18:00:34 +00:00
Andrew M. Kuchling
830358af09
Remove locking of individual message files in MH.pack().
...
[Backport of rev52776 from the trunk.]
2006-11-17 16:16:28 +00:00
Georg Brandl
dd3bffb679
Bug #1588217 : don't parse "= " as a soft line break in binascii's
...
a2b_qp() function, instead leave it in the string as quopri.decode()
does.
(backport from rev. 52765)
2006-11-16 17:08:48 +00:00
Martin v. Löwis
962e4317bc
Patch #1360200 : Use unmangled_version RPM spec field to deal with
...
file name mangling.
2006-11-12 18:56:18 +00:00
Martin v. Löwis
867ef13436
Patch #1359217 : Ignore 2xx response before 150 response.
2006-11-12 18:48:30 +00:00
Phillip J. Eby
511350bee9
Fix SF#1566719: not creating site-packages (or other target directory) when
...
installing .egg-info for a project that contains no modules or packages,
while using --root (as in bdist_rpm). (Backport from trunk)
2006-11-10 17:13:29 +00:00
Andrew M. Kuchling
7ea928c452
[Patch #1514543 ] mailbox (Maildir): avoid losing messages on name clash
...
Two changes:
Where possible, use link()/remove() to move files into a directory; this
makes it easier to avoid overwriting an existing file.
Use _create_carefully() to create files in tmp/, which uses O_EXCL.
2006-11-10 13:15:58 +00:00
Andrew M. Kuchling
bb876b9c69
[Patch #1514544 by David Watson] use fsync() to ensure data is really on disk
2006-11-10 13:08:03 +00:00
Andrew M. Kuchling
d52a0b8583
[Bug #1569790 ] mailbox.Maildir.get_folder() loses factory information
...
Both the Maildir and MH classes had this bug; the patch fixes both classes
and adds a test.
2006-11-09 13:33:53 +00:00
Martin v. Löwis
3f63454e22
Patch #838546 : Make terminal become controlling in pty.fork().
2006-11-09 11:06:30 +00:00
Martin v. Löwis
a1e3422205
Correctly forward exception in instance_contains().
...
Fixes #1591996 . Patch contributed by Neal Norwitz.
2006-11-08 06:46:49 +00:00
Neal Norwitz
a3ce6aa8b7
Backport 52621:
...
Bug #1588287 : fix invalid assertion for `1,2` in debug builds.
2006-11-04 19:32:54 +00:00
Martin v. Löwis
56602a14e6
Patch #1060577 : Extract list of RPM files from spec file in
...
bdist_rpm
2006-11-04 18:14:22 +00:00
Georg Brandl
5e9f94ac7a
Bug #1576657 : when setting a KeyError for a tuple key, make sure that
...
the tuple isn't used as the "exception arguments tuple".
(backport from rev. 52535)
2006-10-29 18:31:45 +00:00
Georg Brandl
6dc39987c9
Bug #1586773 : extend hashlib docstring.
...
(backport from rev. 52532)
2006-10-29 18:01:12 +00:00
Georg Brandl
f96b162b68
I thought I had already fixed this error in the test.
2006-10-29 15:22:43 +00:00
Georg Brandl
c68d2cc3f2
Bug #1586613 : fix zlib and bz2 codecs' incremental en/decoders.
...
(backport from rev. 52529)
2006-10-29 14:39:13 +00:00
Georg Brandl
b8205a1188
Fix the new EncodedFile test to work with big endian platforms.
...
(backport from rev. 52527)
2006-10-29 09:32:19 +00:00
Georg Brandl
2527f7fee0
Patch #1583880 : fix tarfile's problems with long names and posix/
...
GNU modes.
(backport from rev. 52524)
2006-10-29 09:16:15 +00:00