Lars Gustäbel
d220144a84
Fix directory names to have only one trailing slash.
...
A regression from rev. 52525.
2007-04-20 14:49:02 +00:00
Anthony Baxter
ef57abdb60
2.5.1 final
2007-04-18 03:35:45 +00:00
Neal Norwitz
e6e383f498
Revert SF #1615701 (rev 53655): dict.update() does *not* call __getitem__() or
...
keys() if subclassed. This is to remain consistent with 2.5.
See discussion here:
http://mail.python.org/pipermail/python-dev/2007-April/072565.html
2007-04-16 06:59:13 +00:00
Neal Norwitz
8d61db5a00
Revert 54805 for 2.5.1 release. Can be applied after 2.5 branch is unfrozen.
2007-04-16 06:20:14 +00:00
Barry Warsaw
9bd522d7d1
Add code to read from master_fd in the parent, breaking when we get an OSError
...
(EIO can occur on Linux) or there's no more data to read. Without this,
test_pty.py can hang on the waitpid() because the child is blocking on the
stdout write. This will definitely happen on Mac OS X and could potentially
happen on other platforms. See the comment for details.
2007-04-13 16:12:02 +00:00
Anthony Baxter
9515c96cb0
preparing for 2.5.1c1
2007-04-05 04:52:06 +00:00
Raymond Hettinger
3608f0570e
Bug #1563759 : struct.unpack doens't support buffer protocol objects
2007-04-04 20:32:03 +00:00
Martin v. Löwis
8863544522
Bug #1686475 : Support stat'ing open files on Windows again.
2007-04-04 18:30:56 +00:00
Raymond Hettinger
6a390b34b7
SF 1602378 Clarify docstrings for bisect
2007-04-03 00:01:09 +00:00
Raymond Hettinger
d6030acd7f
Array module's buffer interface can now handle empty arrays.
2007-04-02 22:39:08 +00:00
Raymond Hettinger
4bbcb64d5d
SF #1693079 Array module cannot pickle empty arrays
2007-04-02 17:03:46 +00:00
Neal Norwitz
93e9384402
Backport 54644:
...
SF #1685563 , MSVCCompiler creates redundant and long PATH strings
If MSVCCompiler.initialize() was called multiple times, the path
would get duplicated. On Windows, this is a problem because the
path is limited to 4k. There's no benefit in adding a path multiple
times, so prevent that from occuring. We also normalize the path
before checking for duplicates so things like /a and /a/ won't both
be stored.
2007-04-01 18:29:47 +00:00
Marc-André Lemburg
530698235d
Bump the patch level version of distutils since there were a few bug fixes
...
since the 2.5.0 release.
Backport of r54615.
2007-03-31 21:02:43 +00:00
Neal Norwitz
65407fb734
Backport 54594:
...
Fix SF #1688393 , sock.recvfrom(-24) crashes
Also fix some method names that were copied incorrectly (trunk fixed).
2007-03-31 18:56:11 +00:00
Martin v. Löwis
a8ddae6149
Bug #978833 : Revert r50844, as it broke _socketobject.dup.
2007-03-23 13:27:29 +00:00
Žiga Seilnacht
e5df857cc3
Bug #1675967 : re patterns pickled with older Python versions can
...
now be unpickled.
(backport form rev. 54492)
2007-03-21 20:37:39 +00:00
Raymond Hettinger
7ed0a65831
Test and fix fromkeys optional argument.
2007-03-21 20:36:45 +00:00
Georg Brandl
9225f226a3
Bug #1684254 : webbrowser now uses shlex to split any command lines
...
given to get(). It also detects when you use '&' as the last argument
and creates a BackgroundBrowser then.
(backport -- this is a regression from 2.4 and therefore backported)
2007-03-21 11:52:38 +00:00
Georg Brandl
8a10ea4613
Patch #1682205 : a TypeError while unpacking an iterable is no longer
...
masked by a generic one with the message "unpack non-sequence".
(backport from rev. 54480)
2007-03-21 09:00:55 +00:00
Raymond Hettinger
f94e89c578
Extend work on rev 52962 and 53830 eliminating redundant PyObject_Hash() calls and fixing set/dict interoperability.
2007-03-20 21:45:04 +00:00
Collin Winter
7d9ac78384
Patch #1642547 : Fix an error/crash when encountering syntax errors in complex if statements.
...
Backported from r54404.
2007-03-16 04:12:48 +00:00
Žiga Seilnacht
c1b4e8e6e2
Patch #1462488 : prevent a segfault in object_reduce_ex() by splitting
...
the implementation for __reduce__ and __reduce_ex__ into two separate
functions. Fixes bug #931877 .
(backport from rev. 54397)
2007-03-15 11:47:59 +00:00
Georg Brandl
7cd6ef0913
Also commit the patch ;)
2007-03-15 07:43:22 +00:00
Martin v. Löwis
7520df439a
Patch #1559413 : Fix test_cmd_line if sys.executable contains a space.
2007-03-14 20:02:38 +00:00
Žiga Seilnacht
94c887258c
Patch #1680015 : Don't modify __slots__ tuple if it contains an unicode
...
name. Remove a reference leak that happened if the name could not be
converted to string.
(backport from rev. 54378)
2007-03-14 12:34:30 +00:00
Georg Brandl
027ac24650
Bug #767111 : fix long-standing bug in urllib which caused an
...
AttributeError instead of an IOError when the server's response didn't
contain a valid HTTP status line.
(backport from rev. 54376)
2007-03-14 08:27:57 +00:00
Barry Warsaw
924d148b98
SF bug #1582282 ; decode_header() incorrectly splits not-conformant RFC
...
2047-like headers where there is no whitespace between encoded words. This
fix changes the matching regexp to include a trailing lookahead assertion that
the closing ?= must be followed by whitespace, newline, or end-of-string.
This also changes the regexp to add the MULTILINE flag.
2007-03-14 04:29:06 +00:00
Georg Brandl
afa4f485dd
Patch #1194449 : correctly detect unbound methods in pydoc.
...
(backport from rev. 54365)
2007-03-13 22:16:43 +00:00
Martin v. Löwis
1300831c48
Patch #1449244 : Support Unicode strings in
...
email.message.Message.{set_charset,get_content_charset}.
2007-03-13 10:24:14 +00:00
Georg Brandl
74fb211445
Patch #1569798 : fix a bug in distutils when building Python from a
...
directory within sys.exec_prefix.
(backport from rev. 54331)
2007-03-13 10:19:35 +00:00
Georg Brandl
6cdcdbcdaa
Patch #1542681 : add entries for "with", "as" and "CONTEXTMANAGERS" to
...
pydoc's help keywords.
(backport from rev. 54329)
2007-03-13 10:07:01 +00:00
Collin Winter
e19d7a3c0a
Bug #742342 : make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167 .
...
Backported from r54291.
2007-03-12 16:49:23 +00:00
Barry Warsaw
ef23d7000d
Tokio Kikuchi's fix for SF bug #1629369 ; folding whitespace allowed in the
...
display name of an email address, e.g.
Foo
\tBar <foo@example.com>
Test case added by Barry.
2007-03-12 03:21:28 +00:00
Collin Winter
98d1a4d727
Patch #1678662 : ftp.python.org does not exist. So the testcode in urllib.py must use a more
...
stable FTP.
Backported from r54278.
2007-03-12 01:57:49 +00:00
Vinay Sajip
fbf1f3e602
Fix resource leak reported in SF #1516995 .
2007-03-11 18:37:20 +00:00
Collin Winter
3e43bcc78e
Patch #1192590 : Fix pdb's "ignore" and "condition" commands so they trap the IndexError caused by passing in an invalid breakpoint number.
...
Backport of r54271.
2007-03-11 16:04:01 +00:00
Georg Brandl
d28d9c8221
Add missing "return" statements in exception handler.
...
(backport from rev. 54268)
2007-03-11 08:28:50 +00:00
Collin Winter
69fe9e478f
Convert an assert to a raise so it works even in the presence of -O.
2007-03-10 14:35:22 +00:00
Georg Brandl
237458b2bf
Revert rev. 54198, it's not really backwards compatible.
2007-03-10 08:06:14 +00:00
Collin Winter
86d8d3520d
Bug #1531963 : Make SocketServer.TCPServer's server_address always be equal to calling getsockname() on the server's socket. Fixed by patch #1545011 .
...
Backported from r54253.
2007-03-10 03:31:44 +00:00
Thomas Heller
8bf469ddc1
Merged revisions 54248 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes
........
r54248 | thomas.heller | 2007-03-09 21:39:22 +0100 (Fr, 09 Mär 2007) | 7 lines
Bug #1651235 : When a tuple was passed to a ctypes function call,
Python would crash instead of raising an error.
The crash was caused by a section of code that should have been
removed long ago, at that time ctypes had other ways to pass
parameters to function calls.
........
2007-03-09 20:48:57 +00:00
Thomas Heller
f7eed5e2d1
Merged revisions 54244 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes
........
r54244 | thomas.heller | 2007-03-09 20:21:28 +0100 (Fr, 09 Mär 2007) | 3 lines
Fix bug #1646630 : ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0)
returned string up to the first NUL character.
........
2007-03-09 20:21:16 +00:00
Brett Cannon
afd9b2b54d
Manual backport of r54233. This will help prevent spurious Buildbot failures
...
by HTTPS connections that time out.
2007-03-09 04:57:00 +00:00
Raymond Hettinger
1622d82c08
SF #1637850 : make_table in difflib did not work with unicode
2007-03-08 21:30:55 +00:00
Collin Winter
590af0a7c9
Backported r54226 from p3yk: Move test_unittest, test_doctest and test_doctest2 higher up in the testing order.
2007-03-08 19:58:46 +00:00
Raymond Hettinger
154bc7c9bd
SF 1676321: empty() returned wrong result
2007-03-08 19:23:25 +00:00
Georg Brandl
0c4f3fda50
Backport skipping fromtimestamp(negative value) tests on Windows (from rev. 54209)
2007-03-07 16:12:05 +00:00
Georg Brandl
d480b3370b
backport rev. 54207: add a few sanity checks in unittest.TestSuite.addTest(s).
2007-03-07 11:55:25 +00:00
Georg Brandl
84a0b8d4b6
Patch #1001604 : glob.glob() now returns unicode filenames if it was
...
given a unicode argument and os.listdir() returns unicode filenames.
(backport from rev. 54197)
2007-03-07 08:32:24 +00:00
Georg Brandl
fd13ef9c9c
Patch #812285 : allow multiple auth schemes in AbstractBasicAuthHandler.
...
(backport from rev. 54195)
2007-03-07 07:39:13 +00:00