- 23 Jul, 2006 2 commits
-
-
Kurt B. Kaiser authored
-
Greg Ward authored
that a 2.93 sec audio file will always take 3.1 sec (as it did on the hardware I had when I first wrote the test), expect that it will take 2.93 sec +/- 10%, and only fail if it's outside of that range. Compute the expected
-
- 22 Jul, 2006 2 commits
-
-
Neal Norwitz authored
-
Neal Norwitz authored
-
- 21 Jul, 2006 8 commits
-
-
Brett Cannon authored
-
Georg Brandl authored
-
Barry Warsaw authored
points out there are really two types of continued headers defined in this RFC (i.e. "encoded" parameters with the form "name*0*=" and unencoded parameters with the form "name*0="), but we were were handling them both the same way and that isn't correct. This patch should be much more RFC compliant in that only encoded params are %-decoded and the charset/language information is only extract if there are any encoded params in the segments. If there are no encoded params then the RFC says that there will be no charset/language parts. Note however that this will change the return value for Message.get_param() in some cases. For example, whereas before if you had all unencoded param continuations you would have still gotten a 3-tuple back from this method (with charset and language == None), you will now get just a string. I don't believe this is a backward incompatible change though because the documentation for this method already indicates that either return value is possible and that you must do an isinstance(val, tuple) check to discriminate between the two. (Yeah that API kind of sucks but we can't change /that/ without breaking code.) Test cases, some documentation updates, and a NEWS item accompany this patch.
-
Neal Norwitz authored
-
Neal Norwitz authored
-
Neal Norwitz authored
Many (all?) of these could be backported.
-
Neal Norwitz authored
that if we call Py_DECREF(frame) like we do if allocating locals fails, frame_dealloc() will try to use these bogus values and crash.
-
Neal Norwitz authored
-
- 20 Jul, 2006 6 commits
-
-
Vinay Sajip authored
Addressed SF#1524081 by using a dictionary to map level names to syslog priority names, rather than a string.lower().
-
Kurt B. Kaiser authored
Patch 1407280 Tal Einat M ParenMatch.py M NEWS.txt M CREDITS.txt
-
Fred Drake authored
-
Vinay Sajip authored
Updated documentation for TimedRotatingFileHandler relating to how rollover files are named. The previous documentation was wrongly the same as for RotatingFileHandler.
-
Georg Brandl authored
-
Phillip J. Eby authored
(There was a problem with empty filenames still causing recursion)
-
- 19 Jul, 2006 3 commits
-
-
Martin v. Löwis authored
r50697: Comments and docs cleanups, and some little fixes per recommendation from Raymond Hettinger.
-
Thomas Heller authored
not defined on Windows, even if that configuration is probably not supported at all.
-
Tim Peters authored
Moved the code for _PyThread_CurrentFrames() up, so it's no longer in a huge "#ifdef WITH_THREAD" block (I didn't realize it /was/ in one). Changed test_sys's test_current_frames() so it passes with or without thread supported compiled in. Note that test_sys fails when Python is compiled without threads, but for an unrelated reason (the old test_exit() fails with an indirect ImportError on the `thread` module). There are also other unrelated compilation failures without threads, in extension modules (like ctypes); at least the core compiles again. Do we really support --without-threads? If so, there are several problems remaining.
-
- 18 Jul, 2006 5 commits
-
-
Tim Peters authored
-
Martin v. Löwis authored
-
Facundo Batista authored
-
Brett Cannon authored
of values in the time tuple passed in. Unfortunately people came to rely on undocumented behaviour of setting unneeded values to 0, regardless of if it was within the valid range. Now those values force the value internally to the minimum value when 0 is passed in.
-
Kurt B. Kaiser authored
-
- 17 Jul, 2006 10 commits
-
-
Barry Warsaw authored
Specifically, instead of raising a ValueError when there is a single tick in the parameter, simply return that the entire string unquoted, with None for both the charset and the language. Also, if there are more than 2 ticks in the parameter, interpret the first three parts as the standard RFC 2231 parts, then the rest of the parts as the encoded string. Test cases added. Original fewer-than-3-parts fix by Tokio Kikuchi. Resolves SF bug # 1218081. I will back port the fix and tests to Python 2.4 (email 3.0) and Python 2.3 (email 2.5). Also, bump the version number to email 4.0.1, removing the 'alpha' moniker.
-
Kurt B. Kaiser authored
1. 'as' highlighted as builtin in comment string on import line 2. Comments such as "#False identity" which start with a keyword immediately after the '#' character aren't colored as comments. 3. u or U beginning unicode string not correctly highlighted Closes bug 1325071
-
Andrew M. Kuchling authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Fred Drake authored
SF bug #1504456 (partial)
-
Neal Norwitz authored
-
Neal Norwitz authored
v2 can be NULL if exception2 is NULL. I don't think that condition can happen, but I'm not sure it can't either. Now the code will protect against either being NULL.
-
Neal Norwitz authored
DECREF otherset rather than XDECREF in error conditions too. Reported by Klockwork #154.
-
Neal Norwitz authored
be NULL so assert it. Fix one place where we could have passed NULL. Reported by Klocwork #66.
-
- 16 Jul, 2006 4 commits
-
-
Neal Norwitz authored
A NULL would crash the PyTuple_Check(). Now make NULL return a SystemError. Reported by Klocwork #73.
-
Neal Norwitz authored
Reported by Klocwork #67
-
Neal Norwitz authored
be wrong. The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1 to strncat. strncat copies n+1 bytes from src (not dest). Reported by Klocwork #58.
-
Neal Norwitz authored
Reported by Klocwork, #98.
-