Barry Warsaw [Fri, 13 Jul 2007 22:12:58 +0000 (22:12 +0000)]
In response to this SF bug:
[ 1752723 ] email.message_from_string: initial line gets discarded
I added a test to assert that when the first line of text passed to
message_from_string() contains a leading space, the message ends up with the
appropriate FirstHeaderLineIsContinuationDefect on its defects list.
Thomas Heller [Fri, 13 Jul 2007 13:59:39 +0000 (13:59 +0000)]
Repair COMError. Since exceptions are new style classes now, setting
the methods and docstring after the type creation does not work, they
must be in the dictionary before creating the type.
Added tests for basic behavior of DateTime, Binary, and Fault classes
and the escape function. Check that marshalling recursive sequences &
dicts raises TypeError. Check that marshalling out-of-range ints
raises OverflowError [Alan McIntyre - GSoC]
Georg Brandl [Thu, 12 Jul 2007 09:59:22 +0000 (09:59 +0000)]
Patch #1675424: Added tests for uncovered code in the zipfile module.
The KeyError raised by Zipfile.getinfo for nonexistent names now has
a descriptive message.
Kurt B. Kaiser [Thu, 5 Jul 2007 22:03:39 +0000 (22:03 +0000)]
Many calls to tk.call involve an arglist containing a single tuple.
Calls using METH_OLDARGS unpack this tuple; calls using METH_VARARG
don't. Tcl's concatenation of args was affected; IDLE doesn't start.
Modify Tkapp_Call() to unpack single tuple arglists.
Neal Norwitz [Fri, 15 Jun 2007 03:11:41 +0000 (03:11 +0000)]
urllib2_localnet says it leaks probably due to threads. So ignore it.
popen2 is also complaining probably for similar reasons.
make install always reports failure, so don't mail in this case.
Walter Dörwald [Wed, 13 Jun 2007 16:57:12 +0000 (16:57 +0000)]
Add T_PYSSIZET in structmember.h: This can be used for
Py_ssize_t members.
Simplify the implementation of UnicodeError objects:
start and end attributes are now stored directly as
Py_ssize_t members, which simplifies various get and
set functions.
Facundo Batista [Mon, 11 Jun 2007 16:27:08 +0000 (16:27 +0000)]
Added versionchanged flag to all the methods which received
a new optional timeout parameter, and a versionadded flag to
the socket.create_connection function.
Neal Norwitz [Mon, 11 Jun 2007 06:16:48 +0000 (06:16 +0000)]
Not sure why this only fails sometimes on Unix machines. Better
to disable it and only import msvccompiler on Windows since that's
the only place it can work anyways.
Neal Norwitz [Mon, 11 Jun 2007 05:28:45 +0000 (05:28 +0000)]
Add all of the distuils modules that don't seem to have explicit tests. :-(
Move an import in mworkscompiler so that this module can be imported on
any platform. Hopefully this works on all platforms.
Neal Norwitz [Sat, 9 Jun 2007 03:36:34 +0000 (03:36 +0000)]
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.
Facundo Batista [Wed, 6 Jun 2007 17:15:23 +0000 (17:15 +0000)]
Added an optional timeout parameter to function urllib2.urlopen,
with tests in test_urllib2net.py (must have network resource
enabled to execute them). Also modified test_urllib2.py because
testing mock classes must take it into acount. Docs are also
updated.
Hye-Shik Chang [Tue, 5 Jun 2007 18:58:51 +0000 (18:58 +0000)]
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.
Hye-Shik Chang [Tue, 5 Jun 2007 18:16:52 +0000 (18:16 +0000)]
Fix build on FreeBSD. Bluetooth HCI API in FreeBSD is quite different
from Linux's. Just fix the build for now but the code doesn't
support the complete capability of HCI on FreeBSD yet.
Brett Cannon [Sun, 3 Jun 2007 23:13:41 +0000 (23:13 +0000)]
Make _strptime.TimeRE().pattern() use ``\s+`` for matching whitespace instead
of ``\s*``. This prevents patterns from "stealing" bits from other patterns in
order to make a match work.
Neal Norwitz [Sun, 3 Jun 2007 20:32:50 +0000 (20:32 +0000)]
Backout the original 'fix' to 1721309 which had no effect.
Different versions of Berkeley DB handle this differently.
The comments and bug report should have the details. Memory is allocated
in 4.4 (and presumably earlier), but not in 4.5. Thus
4.5 has the free error, but not earlier versions.
Mostly update comments, plus make the free conditional.