summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Change xmlrpclib to use the newer httplib interface.Jeremy Hylton2007-08-142-73/+77
| | | | | | | Note that it's hard to test xmlrpclib, because the server it attempts to connect to doesn't seem to support the expected interfaces. Many of the links via xmlrpc.com are dead, so I couldn't find another server to use for tests.
* The dbm module should use bytes for keys. This makes test_shelve pass.Guido van Rossum2007-08-142-8/+8
|
* Fix test_gdbm.Martin v. Löwis2007-08-141-3/+3
|
* Remove string.{letters,lowercase,uppercase}.Martin v. Löwis2007-08-148-46/+17
|
* Patch suggested Paul Colomiets fixes test_threaded_import.py.Guido van Rossum2007-08-131-2/+2
|
* Don't mess with string.letters any more. It is most likely going to disappear.Guido van Rossum2007-08-131-62/+0
| | | | | Even if it isn't, it shouldn't be changed based on the locale setting IMO. (Incidentally, this makes test_csv.py pass again on my box.)
* Improved patches for sndhdr and imghdr by Victor Stinner, who writes:Guido van Rossum2007-08-132-32/+33
| | | | | | | | - fix "h[sbseek] == b'\1'" and "ratecode = ord(h[sbseek+4])" in test_voc() - avoid division by zero - use startswith method: replace h[:2] == b'BM' by h.startswith(b'BM') - use aifc.open() instead of old aifc.openfp() - use ord(b'P') instead of ord('P')
* Fix two obvious 2.xisms.Guido van Rossum2007-08-131-3/+2
|
* Enable basic load/store again.Martin v. Löwis2007-08-131-3/+3
|
* Fix a failing test on FreeBSD: ttys are seekable in FreeBSD, too.Hye-Shik Chang2007-08-131-2/+3
|
* Fix a test failure on non-UTF-8 locales: bad_coding2.py is encodedHye-Shik Chang2007-08-131-1/+1
| | | | in utf-8.
* Retouch my last change after a comment on style from Guido.Lars Gustäbel2007-08-131-10/+7
|
* Allow str8 in .write().Martin v. Löwis2007-08-131-1/+2
|
* Expect that source strings are Unicode.Martin v. Löwis2007-08-131-8/+10
|
* Make assertion error be more verbose.Martin v. Löwis2007-08-131-1/+1
|
* Fix typo.Martin v. Löwis2007-08-131-1/+1
|
* Create Unicode objects.Martin v. Löwis2007-08-131-69/+20
|
* Use Tcl_SetObjResult instead of Tcl_SetResult.Martin v. Löwis2007-08-131-12/+5
|
* Cleanup a little.Neal Norwitz2007-08-121-31/+34
| | | | | | Use bit fields for flags to reduce memory usage. Return booleans where they are documented. Although a boolean for seekable seems a bit odd when it can be unknown. Add a comment about this.
* Add comment that should be addressedNeal Norwitz2007-08-121-0/+3
|
* Fix memory leak in an error conditionNeal Norwitz2007-08-121-1/+4
|
* Fix memory leakNeal Norwitz2007-08-121-1/+2
|
* Compare what's read from files against proper byte literals. Neither of theseBarry Warsaw2007-08-122-58/+61
| | | | | | | | | | | | | modules have unittests AFAICT, and I'm not improving things here, but these changes make a bunch of email package tests succeed, and command line testing against real files seems to make things better. Added an __main__ section to imghdr.py so that it can be run from the command line similarly to sndhdr.py. Someone else can figure out a better -m way of doing this. In sndhdr.py do a couple of very minor cleanups, and use a with statement to not wait for gc to close the file.
* PyErr_Warn is deprecated in 2.5 - goes away for 3.0Skip Montanaro2007-08-1211-55/+40
|
* Fix memory leakNeal Norwitz2007-08-121-1/+1
|
* Don't try to convert str to Unicode anymore.Martin v. Löwis2007-08-121-10/+1
|
* Get pystone working with lazy map.Neal Norwitz2007-08-121-1/+1
|
* Fix the refleak in strftime when converting a %Z with a user defined tzinfo.Neal Norwitz2007-08-121-32/+39
| | | | | | | | | | | | | | | I inverted some of the conditionals to reduce indent levels. Hopefully this makes it a little easier to read. This code caused the leak: class FixedOffset(datetime.tzinfo): def tzname(self, dt): return "UTC" datetime.time(12, 47, tzinfo=FixedOffset()).strftime('%Z') This code is very tricky and I'm not positive it works. However, it neither crashes nor leaks.
* 1. Catch TypeError exception when writing to OutputWindowKurt B. Kaiser2007-08-122-2/+5
| | | | | | | | | 2. PyShell: shell isn't working due to encoding issues. Temporarily direct exceptions to the terminal. Also, trap exceptions occurring during write() instead of passing. Checking (2) in temporarily to aid finding the encoding problem in IOBinding.py
* Add -s/--start option that makes it easier to run the tests in batchesNeal Norwitz2007-08-121-3/+19
| | | | when one test fails and you want to start running from that point onwards.
* Remove docs for builtin file.Neal Norwitz2007-08-121-103/+54
| | | | Move docs for: long -> int, unichr -> chr, unicode -> str.
* Kill execfile(), use exec() insteadNeal Norwitz2007-08-1298-341/+179
|
* Fix refleaks from execfile('file that contains a # coding: line')Neal Norwitz2007-08-121-11/+21
| | | | Also simplify logic a bit in fp_setreadl.
* Make sure to flush output when writing dots during -R runsNeal Norwitz2007-08-121-0/+1
|
* Remove obsolete ifdef.Martin v. Löwis2007-08-111-2/+0
|
* Fix problem when exec'ing a string with a codingNeal Norwitz2007-08-112-1/+6
|
* Change module to produce and consume bytes.Martin v. Löwis2007-08-111-13/+8
|
* Remove unnecessary importNeal Norwitz2007-08-111-1/+0
|
* Fix test_wsgiref that used StringIO and a BufferedReader rather thanNeal Norwitz2007-08-111-1/+2
| | | | | real files. This code assumed that fileno() would succeed which wasn't the case.
* Quick fix for a new problem here -- using string.lowercase somehow causedGuido van Rossum2007-08-111-4/+3
| | | | problems.
* Fix automatic replacing mistake.Georg Brandl2007-08-111-1/+1
|
* Fall back to ascii if the locale module cannot be loaded.Martin v. Löwis2007-08-111-2/+7
|
* A few sqlite files were still using RO instead of READONLY.Guido van Rossum2007-08-112-15/+15
|
* Fix reference leak.Martin v. Löwis2007-08-111-0/+1
|
* Set sys.stdout.encoding properly.Martin v. Löwis2007-08-114-9/+59
| | | | | Always set LC_CTYPE on interpreter startup. Add device_encoding function.
* Change shelve to require a bytes-oriented dict asMartin v. Löwis2007-08-112-19/+53
| | | | the underlying storage, and yet provide string keys.
* Remove support for __members__ and __methods__. There still might beNeal Norwitz2007-08-1114-195/+83
| | | | | some cleanup to do on this. Particularly in Python/traceback.c with getting rid of the getattr if possible and Demo/*metaclasses/Enum.py.
* Fix test_bsddb3.Martin v. Löwis2007-08-113-62/+64
|
* Fix refleaksNeal Norwitz2007-08-111-0/+4
|
* Handle errorNeal Norwitz2007-08-111-1/+4
|