summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make test_complex pass again now that floordiv and mod are illegal.Guido van Rossum2007-08-031-12/+7
|
* Make sure socket.close() doesn't interfere with socket.makefile().Jeremy Hylton2007-08-033-39/+148
| | | | | | | | | | | | | | | | | | | | 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.
* Treat HTTP status line as ISO-8859-1 as in httplib module.Jeremy Hylton2007-08-031-1/+1
|
* Hack: Fix some test_urllib2.net tests by getting them access to theJeremy Hylton2007-08-031-10/+12
| | | | | raw socket so they can check the timeout value. Should change the code under test to expose the timeout in a more direct way.
* A few local changes for consistency of string literals.Jeremy Hylton2007-08-031-4/+5
|
* SF patch# 1762940 by Joe Gregorio.Guido van Rossum2007-08-034-14/+24
| | | | | | 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.)
* SF patch# 1764815 by Paul Colomiets.Guido van Rossum2007-08-032-6/+6
| | | | | Fix for test_socketserver. Use io.BytesIO instead of io.StringIO, and adjust tests.
* SF patch# 1766592 by Paul Colomiets.Guido van Rossum2007-08-034-25/+31
| | | | Fix test_zipimport.
* Convert print statements to function calls in Tools/.Collin Winter2007-08-0366-780/+778
|
* Make consistent use of "" for string literals in new classes.Jeremy Hylton2007-08-031-18/+18
|
* Fix status line parsing for http response.Jeremy Hylton2007-08-031-2/+7
|
* Add a default __prepare__() method to 'type', so it can be calledGuido van Rossum2007-08-022-0/+33
| | | | | using super(). (See recent conversation on python-3000 with Talin and Phillip Eby about PEP 3115 chaining rules.)
* Remove useless \withsubitem.Georg Brandl2007-08-021-1/+0
|
* Changes to long and float by Jeffrey Jasskin to conform to PEP 3141.Guido van Rossum2007-08-012-35/+54
| | | | | | 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).
* When testing all stdlib modules, ignore test_pep263.py which is encodedGuido van Rossum2007-08-011-0/+3
| | | | in KOI8-R.
* Tests for @abstractproperty by Jeffrey Yasskin.Guido van Rossum2007-08-012-18/+36
| | | | | | (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).
* Kill div, mod and divmod on complex (already deprecated in 2.x).Guido van Rossum2007-08-011-55/+15
| | | | | Add docstring for conjugate(). Patch by Jeffrey Yasskin.
* Add @abstractproperty.Guido van Rossum2007-08-011-0/+25
|
* Bytes (which are the input for decoding) are mutable now. If a decodingWalter Dörwald2007-07-302-19/+68
| | | | | | | 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.
* In cases where dealing with base64, do the conversion but then get the ASCIIBrett Cannon2007-07-301-7/+6
| | | | | | string representation for use in the XML. Also strip out some unneeded encoding/decoding steps.
* Don't try to use a bytes sequence for file paths. Also force equivalency testsBrett Cannon2007-07-301-1/+3
| | | | to be between str8 and str.
* Add a missing "rf.depth = 0;" to marshal_load().Guido van Rossum2007-07-301-0/+1
| | | | | | 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?).
* Implement PEP 3120.Martin v. Löwis2007-07-295-6/+69
|
* Testing against a different default encoding is meaningless as the defaultBrett Cannon2007-07-291-39/+0
| | | | encoding can only be UTF-8 now.
* Expat parser no longer has a returns_unicode attribute since everything isBrett Cannon2007-07-291-2/+0
| | | | Unicode now.
* Use BytesIO instead of cStringIO.StringIO.Martin v. Löwis2007-07-281-5/+5
|
* Revert previous checkin.Martin v. Löwis2007-07-281-7/+7
|
* Fix quopri to operate consistently on bytes.Martin v. Löwis2007-07-282-75/+87
|
* Return bytes, not str8.Martin v. Löwis2007-07-281-7/+7
|
* Patch #1762412: Fix test case for struni branch.Martin v. Löwis2007-07-281-44/+20
|
* Fix the minidom test.Guido van Rossum2007-07-273-24/+21
| | | | | 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.
* SF patch# 1759922 by Alexandre Vassalotti.Guido van Rossum2007-07-271-6/+1
| | | | Fix one of the two failing tests for minidom.
* Make test_sgmllib pass on OSX. Hopefully it still passes everywhere else too.Guido van Rossum2007-07-271-1/+1
|
* Fix the docstrings for keys(), items(), values() (especially the latter).Guido van Rossum2007-07-271-61/+6
| | | | Get rid of some #ifdef'ed-out code.
* SF patch# 1757839 by Alexandre Vassalotti (part 2).Guido van Rossum2007-07-271-107/+107
| | | | Change a bunch of .assert_(X == Y) to .assertEqual(X, Y).
* SF patch# 1761465 by Jeffrey Yasskin.Guido van Rossum2007-07-277-105/+127
| | | | Fix test_aepack and test_applesingle.
* Delete redundant read() and close() methods from SocketIO class.Guido van Rossum2007-07-271-24/+0
|
* Don't redirect stdout for test_curses.Guido van Rossum2007-07-261-3/+4
| | | | Kill some dead (commented-out) code.
* Return bytes, not string from read(). Makes test_mmap.py pass.Guido van Rossum2007-07-261-1/+1
|
* Move xdrlib over to the bytes type.Brett Cannon2007-07-262-7/+7
|
* Move shelve over to BytesIO as pickle.(Pickler | Unpickler) expect binaryBrett Cannon2007-07-262-16/+16
| | | | | | files, not text files. test_shelve still fails thanks to bsddb not having been fixed.
* Fix two bad type identifiers that caused crashes on OSX (icglue and Nav).Guido van Rossum2007-07-254-6/+4
| | | | Silence two innocuous warnings (_File and _collections).
* Make the last two curses demos work again -- they were using floatGuido van Rossum2007-07-242-28/+28
| | | | | | division. The other curses demos all work fine, so I'm more confident that the curses library actually works. (Don't try to display non-ASCII characters, of course.)
* ccMake test_curses pass.Guido van Rossum2007-07-241-35/+74
| | | | Can't guarantee I caught every spot.
* Make test_wave.py pass.Guido van Rossum2007-07-232-6/+6
| | | | I have no illusion that this fixes all issues with this module.
* Make test_tcl.py pass, by accepting unicode strings as variable names.Guido van Rossum2007-07-231-0/+4
|
* Tweaks to make the codecmaps tests pass again.Guido van Rossum2007-07-234-20/+20
| | | | (To run these, you need to pass -uurlfetch to regrtest.py or runtests.sh.)
* SF patch# 1759016 by Joe Gregorio, who writes:Guido van Rossum2007-07-233-148/+28
| | | | | | | | | | 1. Removed "returns_unicode" attribute, associated code in the module to support that attribute, and all tests associated with it. 2. Parsed data is now returned as unicode strings. 3. Changed input tests to use io.BytesIO instead of StringIO, to reflect the byte processing nature of expat.
* SF patch# 1758570 by Jeffrey Yasskin, who writes:Guido van Rossum2007-07-231-7/+3
| | | | | | I made Carbon.File.pathname return unicode, by analogy with macpath.abspath. There could easily be other bugs of the same sort in this file. The uses of PyString_FromString*() in particular look sketchy.
* Don't use cwnon-ASCII characters in the source; use \ooo escapes.Guido van Rossum2007-07-231-3/+2
| | | | (This doesn't fix test_cookielib, just removes the SyntaxError.)