summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* test_main(): Restore the original root logger level after runningTim Peters2005-12-301-0/+9
| | | | | | | | | | the tests. This stops the confusing/annoying: No handlers could be found for logger "cookielib" message we got whenever some test running after test_logging happened to use cookielib.py (when not using regrtest's -r, this happened during test_urllib2; when using -r, it varied).
* Whitespace normalization.Tim Peters2005-12-301-1/+1
|
* Work around test_locale failing on Solaris.Martin v. Löwis2005-12-301-3/+8
| | | | Will backport to 2.4.
* Fix a delimiter detection problem in sniffer. Sniffing "a|b|c\r\n" wasSkip Montanaro2005-12-302-3/+17
| | | | | | | | returning 'a' as the delimiter. It now returns '|', but not because I understood better what the code was supposed to do. Would someone that understands the idea behind _guess_delimiter() (see its doc string) look to see if my fallback choice is better than before or if it's just serendipity that I picked the proper delimiter?
* SF#1391872Fredrik Lundh2005-12-291-0/+12
| | | | | Floating point literals don't work in non-US locale in 2.5. Patch and new locale tests by Hye-Shik Chang.
* SF bug #1153075: "PyXxx_Check(x) trusts x->ob_type->tp_mro".Armin Rigo2005-12-291-0/+31
| | | | | A patch by mwh to check that user-defined mro's are reasonable enough.
* adding in-place operators to the operator module.Armin Rigo2005-12-291-0/+47
|
* SF patch #1390657:Armin Rigo2005-12-292-0/+112
| | | | | | | | | | | | | | | | | * set sq_repeat and sq_concat to NULL for user-defined new-style classes, as a way to fix a number of related problems. See test_descr.notimplemented()). One of these problems was fixed in r25556 and r25557 but many more existed; this is a general fix and thus reverts r25556-r25557. * to avoid having PySequence_Repeat()/PySequence_Concat() failing on user-defined classes, they now fall back to nb_add/nb_mul if sq_concat/sq_repeat are not defined and the arguments appear to be sequences. * added tests. Backport candidate.
* Fix for problem with Sniffer class. If your delimiter is whitespace and theSkip Montanaro2005-12-282-2/+5
| | | | | | last field was empty it would strip the delimiter and incorrectly guess that "" was the delimiter. Reported in c.l.py by Laurent Laporte. Will backport.
* Bug #649974: make docstrings for url2pathname consistentGeorg Brandl2005-12-264-21/+25
|
* Whitespace normalization.Tim Peters2005-12-2575-33209/+33162
|
* test_bug_1333982(): This one must fail under -O.Tim Peters2005-12-251-1/+4
| | | | All the --all test pass using -O on WinXP now.
* SF patch #1157027, cookielib mis-handles RFC 2109 cookies in Netscape modeNeal Norwitz2005-12-232-5/+55
|
* Fix SF #1117398, cookielib LWPCookieJar and MozillaCookieJar exceptionsNeal Norwitz2005-12-234-10/+36
| | | | | | cookielib.LWPCookieJar and .MozillaCookieJar are documented to raise cookielib.LoadError on attempt to load an invalid cookies file, but raise IOError instead. Compromise by having LoadError subclass IOError.
* Fix Armin's bug 1333982. He found it, he didn't created it :-)Neal Norwitz2005-12-181-0/+40
| | | | | | | | | | This code generated a C assertion: assert 1, ([s for s in x] + [s for s in x]) pass assert was completely broken, it needed to use the proper block. compiler_use_block() is now no longer used, so remove it.
* Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.Neal Norwitz2005-12-182-0/+9
| | | | Needs backport.
* Get float() to be more portable across platforms. Disable hex strings.Neal Norwitz2005-12-181-2/+4
|
* Fix _sys_version() so it works with the new buildno, not sure if it is ↵Neal Norwitz2005-12-181-2/+1
| | | | correct. test_platform passes
* SF Patch #1365916, mmap fails on AMD64Neal Norwitz2005-12-181-0/+16
| | | | Fix some 64-bit issues due to mismatch format characters w/actual data types
* SF patch #1355913, PEP 341 - Unification of try/except and try/finallyNeal Norwitz2005-12-171-0/+180
| | | | Modified since ast-arenas was implemented.
* Bug #1379994: Fix *unicode_escape codecs to encode r'\' as r'\\'Hye-Shik Chang2005-12-171-10/+14
| | | | just like string codecs.
* added encoding tests to ElementTree/cElementTree testsFredrik Lundh2005-12-162-15/+31
|
* Patch #1360443: Make SimpleHTTPServer display unencoded directory names.Georg Brandl2005-12-161-2/+3
|
* Bug #1378455: a problem of urllib using open_local_fileGeorg Brandl2005-12-151-0/+2
|
* Add two tests for the script interface.Walter Dörwald2005-12-151-5/+19
|
* added cElementTree testsFredrik Lundh2005-12-152-0/+204
|
* Revert r41662 and the part of 41552 that originally caused the problemNeal Norwitz2005-12-151-7/+0
| | | | | (calling ftell(stdin) doesn't seem defined). So we won't test errors from ftell unless we can do it portably.
* If quopri uses the implementations from binascii do the tests a second timeWalter Dörwald2005-12-141-10/+35
| | | | | using the Python implementations of the functions. This imcreases code coverage and makes sure that both implementations do the same thing.
* added PSF licensing blurbs to relevant filesFredrik Lundh2005-12-144-0/+12
|
* added cElementTree/_elementtree build stuff and wrapper moduleFredrik Lundh2005-12-141-0/+3
|
* Subversion settings:Armin Rigo2005-12-145-1960/+1960
| | | | | | | | | svn:ignore *.pyc *.pyo svn:eol-style native The .py files appear to have been checked in with Windows or inconsistent line endings. The current check-in disrupts the 'svn blame', but hopefully it is irrelevant for freshly imported code.
* - remove leftover directoryFred Drake2005-12-141-0/+20
| | | | - add file I forgot to add in previous commit
* move the xml package implementation to xmlcore, and adjust the tests toFred Drake2005-12-1424-194/+196
| | | | | test that package, not the xmlcore/PyXML switcheroo fiasco in the xml module/package
* Fix test not to fail on FreeBSD. Directories work also as dataHye-Shik Chang2005-12-131-0/+4
| | | | files on the platform.
* r1077@spiff: Fredrik | 2005-12-12 22:58:44 +0100Fredrik Lundh2005-12-121-0/+1
| | | | | make sure xml.etree can be used even if PyXML is present (solution proposed by Philip J. Eby)
* skip NIS entries, empty entries, etcFredrik Lundh2005-12-122-2/+4
|
* skip nis entries, if not filtered out by getpwall itselfFredrik Lundh2005-12-121-0/+2
|
* added xml.etree test (enough of the ElementTree selftest toFredrik Lundh2005-12-121-0/+339
| | | | make sure that all included components work)
* r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100Fredrik Lundh2005-12-122-2/+7
| | | | assorted xml.etree tweaks
* added ElementTree core components to xml.etreeFredrik Lundh2005-12-124-0/+1621
|
* SF #1377897, Bus error in astNeal Norwitz2005-12-111-0/+4
| | | | | | If a line had multiple semi-colons and ended with a semi-colon, we would loop too many times and access a NULL node. Exit the loop early if there are no more children.
* Patch #1276356: Implement new resource "urlfetch" for regrtest.Hye-Shik Chang2005-12-109-74/+26
| | | | | This enables even impatient people to run tests that require remote files such as test_normalization and test_codecmaps_*.
* mwh spotted a copied error message, make it unique (and correct)Neal Norwitz2005-12-051-1/+1
|
* Fix SF #1373161, r41552 broke test_file on OS XNeal Norwitz2005-12-051-1/+1
| | | | | You apparently can seek(0) on sys.stdin on OS X. But you can't go backwards, so seek(-1).
* [Bug #1281032] Pass encoding from the input source to pyexpat's ParserCreate()Andrew M. Kuchling2005-12-041-2/+3
|
* [Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit ↵Andrew M. Kuchling2005-12-042-0/+11
| | | | string, not a Unicode string
* [Patch #1039083] Add 'encoding' parameter to SimpleXMLRPCServerAndrew M. Kuchling2005-12-041-8/+11
|
* Use boolean nameAndrew M. Kuchling2005-12-041-1/+1
|
* [Patch #893642] Add optional allow_none argument to SimpleXMLRPCServer, ↵Andrew M. Kuchling2005-12-041-6/+8
| | | | CGIXMLRPCRequestHandler
* [Bug #1372836] Remove unused codeAndrew M. Kuchling2005-12-041-4/+0
|