summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Tooltips failed on new-syle class __init__ args. Bug 1027566 Loren GuthrieKurt B. Kaiser2006-07-232-1/+3
|
* Be a lot smarter about whether this test passes: instead of assumingGreg Ward2006-07-232-4/+14
| | | | | | | 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
* Don't fail if the directory already existsNeal Norwitz2006-07-221-1/+2
|
* Fix more memory allocation issues found with failmalloc.Neal Norwitz2006-07-226-36/+74
|
* Remove an XXX marker in a comment.Brett Cannon2006-07-211-1/+1
|
* Fix check for empty list (vs. None).Georg Brandl2006-07-211-1/+1
|
* More RFC 2231 improvements for the email 4.0 package. As Mark Sapiro rightlyBarry Warsaw2006-07-215-42/+299
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Handle more memory allocation failures without crashing.Neal Norwitz2006-07-215-8/+38
|
* Speel initialise write. Tanks Anthony.Neal Norwitz2006-07-211-1/+1
|
* Handle allocation failures gracefully. Found with failmalloc.Neal Norwitz2006-07-216-41/+52
| | | | Many (all?) of these could be backported.
* Move the initialization of some pointers earlier. The problem isNeal Norwitz2006-07-211-1/+1
| | | | | 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.
* Add some asserts that we got good params passedNeal Norwitz2006-07-211-0/+3
|
* Addressed SF#1524081 by using a dictionary to map level names to syslog ↵Vinay Sajip2006-07-201-3/+25
| | | | priority names, rather than a string.lower().
* Avoid occasional failure to detect closing paren properly.Kurt B. Kaiser2006-07-203-10/+15
| | | | | | | | Patch 1407280 Tal Einat M ParenMatch.py M NEWS.txt M CREDITS.txt
* markup fixFred Drake2006-07-201-2/+2
|
* Updated documentation for TimedRotatingFileHandler relating to how rollover ↵Vinay Sajip2006-07-201-7/+5
| | | | files are named. The previous documentation was wrongly the same as for RotatingFileHandler.
* Guard for _active being None in __del__ method.Georg Brandl2006-07-201-1/+1
|
* Fix SF#1516184 (again) and add a test to prevent regression.Phillip J. Eby2006-07-202-2/+4
| | | | (There was a problem with empty filenames still causing recursion)
* Revert r50706 (Whitespace normalization) andMartin v. Löwis2006-07-191-205/+184
| | | | | r50697: Comments and docs cleanups, and some little fixes per recommendation from Raymond Hettinger.
* Make sure the _ctypes extension can be compiled when WITH_THREAD isThomas Heller2006-07-192-0/+6
| | | | | not defined on Windows, even if that configuration is probably not supported at all.
* SF bug 1524317: configure --without-threads fails to buildTim Peters2006-07-193-52/+78
| | | | | | | | | | | | | | | | | | 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.
* Whitespace normalization.Tim Peters2006-07-183-11/+11
|
* Patch #1524429: Use repr instead of backticks again.Martin v. Löwis2006-07-182-1/+3
|
* Comments and docs cleanups, and some little fixes, provided by Santiágo ↵Facundo Batista2006-07-181-184/+205
| | | | Peresón
* Fix bug #1520914. Starting in 2.4, time.strftime() began to check the boundsBrett Cannon2006-07-184-16/+56
| | | | | | | 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.
* Rebinding Tab key was inserting 'tab' instead of 'Tab'. Bug 1179168.Kurt B. Kaiser2006-07-182-1/+12
|
* decode_rfc2231(): Be more robust against buggy RFC 2231 encodings.Barry Warsaw2006-07-173-4/+43
| | | | | | | | | | | | | | | | | 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.
* Patch 1479219 - Tal EinatKurt B. Kaiser2006-07-171-12/+18
| | | | | | | | | 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
* Attribute more featuresAndrew M. Kuchling2006-07-171-10/+24
|
* Add missing NEWS item (#1522771)Georg Brandl2006-07-171-0/+4
|
* Remove usage of sets module (patch #1500609).Georg Brandl2006-07-174-9/+6
|
* document xmlcore (still minimal; needs mention in each of the xml.* modules)Fred Drake2006-07-171-0/+11
| | | | SF bug #1504456 (partial)
* Add NEWS entry for a bunch of fixes due to warnings produced by Klocworks ↵Neal Norwitz2006-07-171-0/+2
| | | | static analysis tool.
* Reported by Klocwork #151.Neal Norwitz2006-07-171-2/+13
| | | | | | 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.
* otherset is known to be non-NULL based on checks before and DECREF after.Neal Norwitz2006-07-171-2/+2
| | | | | | DECREF otherset rather than XDECREF in error conditions too. Reported by Klockwork #154.
* Stop INCREFing name, then checking if it's NULL. name (f_name) should neverNeal Norwitz2006-07-171-3/+6
| | | | | | be NULL so assert it. Fix one place where we could have passed NULL. Reported by Klocwork #66.
* PyFunction_SetDefaults() is documented as taking None or a tuple.Neal Norwitz2006-07-161-2/+2
| | | | | | A NULL would crash the PyTuple_Check(). Now make NULL return a SystemError. Reported by Klocwork #73.
* Handle a NULL name properly.Neal Norwitz2006-07-161-3/+3
| | | | Reported by Klocwork #67
* Use sizeof(buffer) instead of duplicating the constants to ensure they won'tNeal Norwitz2006-07-161-7/+7
| | | | | | | | | 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.
* Fix memory leak under some conditions.Neal Norwitz2006-07-161-7/+9
| | | | Reported by Klocwork, #98.
* Fix memory leaks in some conditions.Neal Norwitz2006-07-161-9/+11
| | | | Reported by Klocwork #152.
* proto was dereffed above and is known to be good. No need for X.Neal Norwitz2006-07-161-1/+1
| | | | Reported by Klocwork, #39.
* self is dereffed (and passed as first arg), so it's known to be good.Neal Norwitz2006-07-161-2/+2
| | | | | | func is returned from PyArg_ParseTuple and also dereffed. Reported by Klocwork, #30 (self one at least).
* a & b were dereffed above, so they are known to be valid pointers.Neal Norwitz2006-07-161-3/+2
| | | | | | z is known to be NULL, nothing to DECREF. Reported by Klockwork, #107.
* Bug #1512814, Fix incorrect lineno's when code within a functionNeal Norwitz2006-07-163-5/+33
| | | | had more than 255 blank lines. Byte codes need to go first, line #s second.
* clean up some link markupFred Drake2006-07-161-2/+2
|
* Patch #1220874: Update the binhex module for Mach-O.Bob Ippolito2006-07-152-16/+11
|
* Bug #15187702 : ext/win-cookbook.html has a broken link to distutilsGeorge Yoshida2006-07-151-5/+7
|
* typoFredrik Lundh2006-07-141-1/+1
|
* Updates for the ctypes documentation.Thomas Heller2006-07-141-37/+27
|