- 14 Agu, 2007 5 kayıt (commit)
-
-
Jeremy Hylton yazdı
The two clients in the std library have been updated to use the newer interface. A couple of minor changes to the httplib tests were needed. Also, reformat some long lines in the httplib tests.
-
Jeremy Hylton yazdı
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.
-
Guido van Rossum yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
- 13 Agu, 2007 14 kayıt (commit)
-
-
Guido van Rossum yazdı
-
Guido van Rossum yazdı
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.)
-
Guido van Rossum yazdı
- 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')
-
Guido van Rossum yazdı
-
Martin v. Löwis yazdı
-
Hye-Shik Chang yazdı
-
Hye-Shik Chang yazdı
in utf-8.
-
Lars Gustäbel yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
- 12 Agu, 2007 16 kayıt (commit)
-
-
Neal Norwitz yazdı
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.
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
-
Barry Warsaw yazdı
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.
-
Skip Montanaro yazdı
-
Neal Norwitz yazdı
-
Martin v. Löwis yazdı
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
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.
-
Kurt B. Kaiser yazdı
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
-
Neal Norwitz yazdı
when one test fails and you want to start running from that point onwards.
-
Neal Norwitz yazdı
Move docs for: long -> int, unichr -> chr, unicode -> str.
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
Also simplify logic a bit in fp_setreadl.
-
Neal Norwitz yazdı
-
- 11 Agu, 2007 5 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
Neal Norwitz yazdı
-
Martin v. Löwis yazdı
-
Neal Norwitz yazdı
-
Neal Norwitz yazdı
real files. This code assumed that fileno() would succeed which wasn't the case.
-