Commit Graph

11534 Commits

Author SHA1 Message Date
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
Georg Brandl 0d3de7612c Bug #1357915: allow all sequence types for shell arguments in
subprocess.
 (backport from rev. 52522)
2006-10-29 09:05:08 +00:00
Georg Brandl 2a5a3027f2 Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and
fix all codecs file wrappers to work correctly with the "with"
statement (bug #1586513).
 (backport from rev. 52517)
2006-10-29 08:39:27 +00:00
Neal Norwitz 2f0940b6ca Backport 52504:
Fix bug #1565514, SystemError not raised on too many nested blocks.
It seems like this should be a different error than SystemError, but
I don't have any great ideas and SystemError was raised in 2.4 and earlier.
2006-10-28 21:38:43 +00:00
Thomas Heller a0a50feea8 WindowsError.str should display the windows error code,
not the posix error code; with test.
Fixes #1576174.

Backported from trunk, revision 52485.
2006-10-27 18:47:29 +00:00
Andrew M. Kuchling ff9e7abac8 [Patch #1574068 by Scott Dial] urllib and urllib2 were using
base64.encodestring() for encoding authentication data.
encodestring() can include newlines for very long input, which
produced broken HTTP headers.

2.4 backport candidate, probably.
2006-10-27 17:13:33 +00:00
Andrew M. Kuchling 7d1d540cc3 [Bug #1575506] The _singlefileMailbox class was using the wrong file object in its flush() method, causing an error 2006-10-27 16:57:44 +00:00
Andrew M. Kuchling 3d6a834e29 [Bug #1576241] Let functools.wraps work with built-in functions 2006-10-27 16:42:19 +00:00
Martin v. Löwis 62e58040c1 [Backport of r52452]
Patch #1549049: Rewrite type conversion in structmember.
Fixes #1545696 and #1566140.

The new warnings have been omitted in the backport.
2006-10-27 06:17:21 +00:00
Georg Brandl ee23f4bba7 Patch [ 1583506 ] tarfile.py: 100-char filenames are truncated
(backport from rev. 52431)
2006-10-24 16:54:23 +00:00
Martin v. Löwis 920fa6a102 Remove passwd.adjunct.byname from list of maps
for test_nis.
2006-10-22 13:46:23 +00:00
Thomas Heller dcbf64d34d ctypes callback functions only support 'fundamental' result types.
Check this and raise an error when something else is used - before
this change ctypes would hang or crash when such a callback was
called.  This is a partial fix for #1574584.

Backported from trunk.
2006-10-17 19:41:10 +00:00
Georg Brandl 58bf57fa04 Fix tarfile depending on buggy int('1\0', base) behavior.
(backport from rev. 52313)
2006-10-12 12:03:11 +00:00
Georg Brandl dd4c398c27 Bug #1545497: when given an explicit base, int() did ignore NULs
embedded in the string to convert.
 (backport from rev. 52305)
2006-10-12 11:28:04 +00:00
Georg Brandl 3c48709e3a Bug #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.
 (backport from rev. 52301)
2006-10-12 09:47:17 +00:00
Georg Brandl fcf6696255 Bug #1550524: better heuristics to find correct class definition
in inspect.findsource().
 (backport from rev. 52299)
2006-10-12 09:20:36 +00:00
Georg Brandl f0db92a676 Bug #813342: Start the IDLE subprocess with -Qnew if the parent
is started with that option.
 (backport from rev. 52295)
2006-10-12 07:57:24 +00:00
Martin v. Löwis 463a42b5de Bug #1565150: Fix subsecond processing for os.utime on Windows. 2006-10-09 20:44:50 +00:00
Andrew M. Kuchling 0037300f15 [Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list. 2006-10-09 17:13:26 +00:00
Ronald Oussoren 115930d981 Backport of r52236 2006-10-08 17:52:37 +00:00
Ronald Oussoren beb82a3772 Backport of r52233 2006-10-08 17:50:26 +00:00
Hye-Shik Chang f4fe46d74b Backport from trunk r52223:
Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault
when encoding non-BMP unicode characters.  (Submitted by Ray Chason)
2006-10-08 14:01:45 +00:00