- 03 Aug, 2007 13 commits
-
-
Jeremy Hylton authored
Checks that an io object somewhere in the stack of wrappers is actually closed. --This line, and those below, will be ignored-- M test_urllib2net.py
-
Jeremy Hylton authored
Use io.BytesIO() instead of StringIO.StringIO(). FakeSocket still accepts regular strings and coverts them to bytes internally.
-
Guido van Rossum authored
-
Jeremy Hylton authored
If a makefile()-generated object is open and its parent socket is closed, the parent socket should remain open until the child is closed, too. The code to support this is moderately complex and requires one extra slots in the socket object. This change fixes httplib so that several urllib2net test cases pass again. Add SocketCloser class to socket.py, which encapsulates the refcounting logic for sockets after makefile() has been called. Move SocketIO class from io module to socket module. It's only use is to implement the raw I/O methods on top of a socket to support makefile(). Add unittests to test_socket to cover various patterns of close and makefile.
-
Jeremy Hylton authored
-
Jeremy Hylton authored
raw socket so they can check the timeout value. Should change the code under test to expose the timeout in a more direct way.
-
Jeremy Hylton authored
-
Guido van Rossum authored
Fix test_cookielib and test_urllib2. (The changes to urllib make urllib.quote() work correctly for Unicode strings; but they don't fix test_urllib.)
-
Guido van Rossum authored
Fix for test_socketserver. Use io.BytesIO instead of io.StringIO, and adjust tests.
-
Guido van Rossum authored
Fix test_zipimport.
-
Collin Winter authored
-
Jeremy Hylton authored
-
Jeremy Hylton authored
-
- 02 Aug, 2007 2 commits
-
-
Guido van Rossum authored
using super(). (See recent conversation on python-3000 with Talin and Phillip Eby about PEP 3115 chaining rules.)
-
Georg Brandl authored
-
- 01 Aug, 2007 5 commits
-
-
Guido van Rossum authored
In particular, add trivial implementations of .real, .imag and .conjugate() to both, and add .numerator and .denominator to long. Also some small optimizations (e.g. remove long_pos in favor of long_long).
-
Guido van Rossum authored
in KOI8-R.
-
Guido van Rossum authored
(The previous changes to abc.py were also by him). Put back a comment about using super() for properties (I didn't realize this worked).
-
Guido van Rossum authored
Add docstring for conjugate(). Patch by Jeffrey Yasskin.
-
Guido van Rossum authored
-
- 30 Jul, 2007 4 commits
-
-
Walter Dörwald authored
error callback changes the bytes object in the exception the decoder might use memory that's no longer in use. Change unicode_decode_call_errorhandler() so that it fetches the adresses of the bytes array (start and end) from the exception object and passes them back to the caller.
-
Brett Cannon authored
string representation for use in the XML. Also strip out some unneeded encoding/decoding steps.
-
Brett Cannon authored
to be between str8 and str.
-
Guido van Rossum authored
Reported by Joe Smith. This makes the CYGWIN tests pass; it's a miracle it didn't fail on other platforms. Seems like it was accidentally dropped (maybe a merge artifact?).
-
- 29 Jul, 2007 3 commits
-
-
Martin v. Löwis authored
-
Brett Cannon authored
encoding can only be UTF-8 now.
-
Brett Cannon authored
Unicode now.
-
- 28 Jul, 2007 5 commits
-
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
- 27 Jul, 2007 7 commits
-
-
Guido van Rossum authored
In order to do this, I added an optional encoding argument to io.StringIO. The toprettyxml() function returns bytes when you specify an encoding now.
-
Guido van Rossum authored
Fix one of the two failing tests for minidom.
-
Guido van Rossum authored
-
Guido van Rossum authored
Get rid of some #ifdef'ed-out code.
-
Guido van Rossum authored
Change a bunch of .assert_(X == Y) to .assertEqual(X, Y).
-
Guido van Rossum authored
Fix test_aepack and test_applesingle.
-
Guido van Rossum authored
-
- 26 Jul, 2007 1 commit
-
-
Guido van Rossum authored
Kill some dead (commented-out) code.
-