Georg Brandl
c5db923994
Patch #1673759 : add a missing overflow check when formatting floats
...
with %G.
(backport from rev. 56298)
2007-07-12 08:38:04 +00:00
Georg Brandl
40df67f704
Patch #1752270 , #1750931 : complain if urllib2 add_handler called
...
without handler.
(backport from rev. 56293)
2007-07-12 08:05:48 +00:00
Neal Norwitz
e99cb23e71
Backport 55887:
...
Bug #1734723 : Fix repr.Repr() so it doesn't ignore the maxtuple attribute.
2007-06-11 07:34:07 +00:00
Neal Norwitz
8355dd5806
Backport 55874:
...
Fix a bug when there was a newline in the string expandtabs was called on.
This also catches another condition that can overflow.
2007-06-11 04:32:41 +00:00
Neal Norwitz
11c5275c61
Backport 55873:
...
Prevent these tests from running on Win64 since they don't apply there either
2007-06-11 04:31:25 +00:00
Martin v. Löwis
2276885acd
Patch #1733960 : Allow T_LONGLONG to accept ints.
2007-06-09 08:01:33 +00:00
Neal Norwitz
66e64e2b6a
Prevent expandtabs() on string and unicode objects from causing a segfault when
...
a large width is passed on 32-bit platforms. Found by Google.
It would be good for people to review this especially carefully and verify
I don't have an off by one error and there is no other way to cause overflow.
2007-06-09 04:06:30 +00:00
Georg Brandl
d2acc2e9c5
Patch #1667860 : Fix UnboundLocalError in urllib2.
...
(backport from rev. 55805)
2007-06-07 13:34:41 +00:00
Georg Brandl
73c958aced
Disallow function calls like foo(None=1).
...
Backport from py3k rev. 55708 by Guido.
(backport from rev. 55802)
2007-06-07 13:23:28 +00:00
Hye-Shik Chang
fc41f199ba
Fix for Windows: close a temporary file before trying to delete it.
2007-06-05 19:28:15 +00:00
Hye-Shik Chang
60111e09a9
(Backport from r55770)
...
Bug #1728403 : Fix a bug that CJKCodecs StreamReader hangs when it
reads a file that ends with incomplete sequence and sizehint argument
for .read() is specified.
2007-06-05 19:14:33 +00:00
Brett Cannon
c9490e2fe9
Backport of r55752: make time.strptime() behave better when whitespace is in
...
the format arguments.
2007-06-04 00:14:06 +00:00
Neal Norwitz
cf0fab2686
Verify neither dumps or loads overflow the stack and segfault.
2007-05-18 05:45:33 +00:00
Neal Norwitz
dc78cc6f7c
Fix bug in marshal where bad data would cause a segfault due to
...
lack of an infinite recursion check.
Contributed by Damien Miller at Google.
2007-05-16 20:09:36 +00:00
Kristján Valur Jónsson
a01d6609b9
Merge change 54983 from the trunk: Add the locale "English" to test_locale.py for a windows run, since "En" isn't legal for the Visual C 8 runtime. This update restores full testsuite compliance to VisualStudio 2005 builds, apart from unavailible external modules.
2007-05-07 19:31:41 +00:00
Kristján Valur Jónsson
7bca027f64
Merging change 55102 from the trunk:
...
Fix those parts in the testsuite that assumed that sys.maxint would cause overflow on x64. Now the testsuite is well behaved on that platform.
2007-05-07 13:33:39 +00:00
Brett Cannon
daa2e58104
Backport fix for r54646-7: properly clear locale cache in time.strptime when
...
the locale changes between calls.
2007-04-27 23:17:43 +00:00
Neal Norwitz
44dab0ab2f
Whitespace normalization
2007-04-25 06:42:41 +00:00
Collin Winter
6def78ae85
Convert PyUnit -> unittest. Backported from r54929.
2007-04-24 03:52:08 +00:00
Barry Warsaw
2f131d81e2
Recommit r54805:
...
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-23 01:58:33 +00:00
Walter Dörwald
93a3603c67
Backport r54786:
...
Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the
first chunk fed to the decoder started with a BOM, but was longer than 3 bytes.
2007-04-21 10:31:43 +00:00
Lars Gustäbel
9319e43c67
Patch #1695229 : Fix a regression with tarfile.open() and a missing name
...
argument.
2007-04-20 20:10:59 +00:00
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
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
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
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
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
Ž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
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
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
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
Vinay Sajip
fbf1f3e602
Fix resource leak reported in SF #1516995 .
2007-03-11 18:37:20 +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
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
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
Georg Brandl
0c4f3fda50
Backport skipping fromtimestamp(negative value) tests on Windows (from rev. 54209)
2007-03-07 16:12:05 +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
Walter Dörwald
05b5c7fe0e
Backport checkin:
...
Patch for bug #1633621 : if curses.resizeterm() or
curses.resize_term() is called, update _curses.LINES,
_curses.COLS, curses.LINES and curses.COLS.
2007-03-06 20:46:26 +00:00