- 13 Aug, 2007 14 commits
-
-
Guido van Rossum authored
-
Guido van Rossum authored
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 authored
- 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 authored
-
Martin v. Löwis authored
-
Hye-Shik Chang authored
-
Hye-Shik Chang authored
in utf-8.
-
Lars Gustäbel authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
Martin v. Löwis authored
-
- 12 Aug, 2007 16 commits
-
-
Neal Norwitz authored
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 authored
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Barry Warsaw authored
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 authored
-
Neal Norwitz authored
-
Martin v. Löwis authored
-
Neal Norwitz authored
-
Neal Norwitz authored
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 authored
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 authored
when one test fails and you want to start running from that point onwards.
-
Neal Norwitz authored
Move docs for: long -> int, unichr -> chr, unicode -> str.
-
Neal Norwitz authored
-
Neal Norwitz authored
Also simplify logic a bit in fp_setreadl.
-
Neal Norwitz authored
-
- 11 Aug, 2007 10 commits
-
-
Martin v. Löwis authored
-
Neal Norwitz authored
-
Martin v. Löwis authored
-
Neal Norwitz authored
-
Neal Norwitz authored
real files. This code assumed that fileno() would succeed which wasn't the case.
-
Guido van Rossum authored
problems.
-
Georg Brandl authored
-
Martin v. Löwis authored
-
Guido van Rossum authored
-
Martin v. Löwis authored
-