Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make test_complex pass again now that floordiv and mod are illegal. | Guido van Rossum | 2007-08-03 | 1 | -12/+7 |
| | |||||
* | Make sure socket.close() doesn't interfere with socket.makefile(). | Jeremy Hylton | 2007-08-03 | 3 | -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 Hylton | 2007-08-03 | 1 | -1/+1 |
| | |||||
* | Hack: Fix some test_urllib2.net tests by getting them access to the | Jeremy Hylton | 2007-08-03 | 1 | -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 Hylton | 2007-08-03 | 1 | -4/+5 |
| | |||||
* | SF patch# 1762940 by Joe Gregorio. | Guido van Rossum | 2007-08-03 | 4 | -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 Rossum | 2007-08-03 | 2 | -6/+6 |
| | | | | | Fix for test_socketserver. Use io.BytesIO instead of io.StringIO, and adjust tests. | ||||
* | SF patch# 1766592 by Paul Colomiets. | Guido van Rossum | 2007-08-03 | 4 | -25/+31 |
| | | | | Fix test_zipimport. | ||||
* | Convert print statements to function calls in Tools/. | Collin Winter | 2007-08-03 | 66 | -780/+778 |
| | |||||
* | Make consistent use of "" for string literals in new classes. | Jeremy Hylton | 2007-08-03 | 1 | -18/+18 |
| | |||||
* | Fix status line parsing for http response. | Jeremy Hylton | 2007-08-03 | 1 | -2/+7 |
| | |||||
* | Add a default __prepare__() method to 'type', so it can be called | Guido van Rossum | 2007-08-02 | 2 | -0/+33 |
| | | | | | using super(). (See recent conversation on python-3000 with Talin and Phillip Eby about PEP 3115 chaining rules.) | ||||
* | Remove useless \withsubitem. | Georg Brandl | 2007-08-02 | 1 | -1/+0 |
| | |||||
* | Changes to long and float by Jeffrey Jasskin to conform to PEP 3141. | Guido van Rossum | 2007-08-01 | 2 | -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 encoded | Guido van Rossum | 2007-08-01 | 1 | -0/+3 |
| | | | | in KOI8-R. | ||||
* | Tests for @abstractproperty by Jeffrey Yasskin. | Guido van Rossum | 2007-08-01 | 2 | -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 Rossum | 2007-08-01 | 1 | -55/+15 |
| | | | | | Add docstring for conjugate(). Patch by Jeffrey Yasskin. | ||||
* | Add @abstractproperty. | Guido van Rossum | 2007-08-01 | 1 | -0/+25 |
| | |||||
* | Bytes (which are the input for decoding) are mutable now. If a decoding | Walter Dörwald | 2007-07-30 | 2 | -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 ASCII | Brett Cannon | 2007-07-30 | 1 | -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 tests | Brett Cannon | 2007-07-30 | 1 | -1/+3 |
| | | | | to be between str8 and str. | ||||
* | Add a missing "rf.depth = 0;" to marshal_load(). | Guido van Rossum | 2007-07-30 | 1 | -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öwis | 2007-07-29 | 5 | -6/+69 |
| | |||||
* | Testing against a different default encoding is meaningless as the default | Brett Cannon | 2007-07-29 | 1 | -39/+0 |
| | | | | encoding can only be UTF-8 now. | ||||
* | Expat parser no longer has a returns_unicode attribute since everything is | Brett Cannon | 2007-07-29 | 1 | -2/+0 |
| | | | | Unicode now. | ||||
* | Use BytesIO instead of cStringIO.StringIO. | Martin v. Löwis | 2007-07-28 | 1 | -5/+5 |
| | |||||
* | Revert previous checkin. | Martin v. Löwis | 2007-07-28 | 1 | -7/+7 |
| | |||||
* | Fix quopri to operate consistently on bytes. | Martin v. Löwis | 2007-07-28 | 2 | -75/+87 |
| | |||||
* | Return bytes, not str8. | Martin v. Löwis | 2007-07-28 | 1 | -7/+7 |
| | |||||
* | Patch #1762412: Fix test case for struni branch. | Martin v. Löwis | 2007-07-28 | 1 | -44/+20 |
| | |||||
* | Fix the minidom test. | Guido van Rossum | 2007-07-27 | 3 | -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 Rossum | 2007-07-27 | 1 | -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 Rossum | 2007-07-27 | 1 | -1/+1 |
| | |||||
* | Fix the docstrings for keys(), items(), values() (especially the latter). | Guido van Rossum | 2007-07-27 | 1 | -61/+6 |
| | | | | Get rid of some #ifdef'ed-out code. | ||||
* | SF patch# 1757839 by Alexandre Vassalotti (part 2). | Guido van Rossum | 2007-07-27 | 1 | -107/+107 |
| | | | | Change a bunch of .assert_(X == Y) to .assertEqual(X, Y). | ||||
* | SF patch# 1761465 by Jeffrey Yasskin. | Guido van Rossum | 2007-07-27 | 7 | -105/+127 |
| | | | | Fix test_aepack and test_applesingle. | ||||
* | Delete redundant read() and close() methods from SocketIO class. | Guido van Rossum | 2007-07-27 | 1 | -24/+0 |
| | |||||
* | Don't redirect stdout for test_curses. | Guido van Rossum | 2007-07-26 | 1 | -3/+4 |
| | | | | Kill some dead (commented-out) code. | ||||
* | Return bytes, not string from read(). Makes test_mmap.py pass. | Guido van Rossum | 2007-07-26 | 1 | -1/+1 |
| | |||||
* | Move xdrlib over to the bytes type. | Brett Cannon | 2007-07-26 | 2 | -7/+7 |
| | |||||
* | Move shelve over to BytesIO as pickle.(Pickler | Unpickler) expect binary | Brett Cannon | 2007-07-26 | 2 | -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 Rossum | 2007-07-25 | 4 | -6/+4 |
| | | | | Silence two innocuous warnings (_File and _collections). | ||||
* | Make the last two curses demos work again -- they were using float | Guido van Rossum | 2007-07-24 | 2 | -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 Rossum | 2007-07-24 | 1 | -35/+74 |
| | | | | Can't guarantee I caught every spot. | ||||
* | Make test_wave.py pass. | Guido van Rossum | 2007-07-23 | 2 | -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 Rossum | 2007-07-23 | 1 | -0/+4 |
| | |||||
* | Tweaks to make the codecmaps tests pass again. | Guido van Rossum | 2007-07-23 | 4 | -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 Rossum | 2007-07-23 | 3 | -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 Rossum | 2007-07-23 | 1 | -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 Rossum | 2007-07-23 | 1 | -3/+2 |
| | | | | (This doesn't fix test_cookielib, just removes the SyntaxError.) |