summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Backport checkin:Walter Dörwald2004-12-291-1/+1
| | | | Fix wrong variable name.
* Backport of 1.36:Jack Jansen2004-12-281-2/+2
| | | | | | | - getDefaultDatabase wasn't listed in __all__. - using a different database for non-final releases should only be done for X.Y.0. Non-final micro releases can use the default database just fine, as they are required to be backward compatible.
* [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling2004-12-281-0/+10
| | | | to an uninitialized pointer: fixes the problem and adds a test case
* The GUI was hanging if the shell window was closed while a raw_input()Kurt B. Kaiser2004-12-233-7/+22
| | | | | | | | | was pending. Restored the quit() of the readline() mainloop(). http://mail.python.org/pipermail/idle-dev/2004-December/002307.html M NEWS.txt M PyShell.py M idlever.py
* Recompiled after source changes.Thomas Heller2004-12-222-0/+0
|
* Backport checkin:Walter Dörwald2004-12-212-43/+121
| | | | | | | | | | | | | | | The changes to the stateful codecs in 2.4 resulted in StreamReader.readline() trying to return a complete line even if a size parameter was given (see http://www.python.org/sf/1076985). This leads to buffer overflows with long source lines under Windows if e.g. cp1252 is used as the source encoding. This patch reverts the behaviour of readline() to something that behaves more like Python 2.3: If a size parameter is given, read() is called only once. As a side effect of this, readline() now supports all types of linebreaks supported by unicode.splitlines(). Note that the tokenizer is still broken and it's possible to provoke segfaults (see http://www.python.org/sf/1089395).
* SF bug #951915: fix bug in StringIO.truncate - length not changedRaymond Hettinger2004-12-201-0/+6
| | | | (Patch by Armin Rigo.)
* Back-ported: marshal.dumps() with the new optional argument 'version' justArmin Rigo2004-12-201-0/+5
| | | | immediately segfaults, due to a typo!
* Bugs item #1069409 C:\Python24\Lib\compileall.py returns FalseRaymond Hettinger2004-12-201-1/+1
| | | | * return an integer rather than a boolean
* Backport fix for bug #1083645 have test_imp be skipped if threading is notBrett Cannon2004-12-181-1/+5
| | | | available.
* Bug #1083645Raymond Hettinger2004-12-182-4/+25
| | | | * The decimal module wouldn't run on builds without threads.
* Backport checkin: Fix copy & paste error in comments.Walter Dörwald2004-12-141-2/+2
|
* Backport from trunk: use os.geteuid() for checking whether we are root,Johannes Gijsbers2004-12-121-1/+1
| | | | as suggested by Michael Hudson.
* SF bug #1083202: UnboundLocalError raised by atexit moduleRaymond Hettinger2004-12-111-3/+3
| | | | The sys module could be called before being imported.
* Backport of fix for SF bug #1076467: don't run test_on_error as root, asJohannes Gijsbers2004-12-061-1/+2
| | | | the permission errors don't get provoked that way.
* Don't have test_mkalias_relative run if sys.prefix does not exist. Backport ofBrett Cannon2004-12-061-0/+2
| | | | fix for bug #1077302.
* Raise TypeError if bufsize argument is not an integer. Patch 1071755, ↵Peter Astrand2004-12-052-0/+14
| | | | slightly modified.
* Fixes for SF #1076485, which I'll apply to the CVS head too. The problem wasBarry Warsaw2004-12-054-4/+274
| | | | | | | | | | | | | | | | caused by a self._input.readline() call that wasn't checking for the NeedsMoreData marker. msg_43.txt contains a message that illustrates the problem, when email.message_from_*() is called. That interface uses the Parser API, which splits reads into 8192 byte chunks. It so happens that for the test message, the 8192 chunk falls inside a message/delivery-status, which is where in the FeedParser the readline() call was that didn't check for NeedsMoreData. I also added an assert to unreadline() so it'll be more evident if an attempt to push back NeedsMoreData ever happens again. Bump the email package version number.
* SF bug #1078905: Docs for unittest run() methods are misleadingRaymond Hettinger2004-12-041-4/+5
|
* Corrected example for replacing shell pipeline. Fixes bug 1073790.Peter Astrand2004-11-301-1/+1
|
* doodedoodedoo on the way to 2.4 finalAnthony Baxter2004-11-301-3/+3
|
* Fix argument order in pure python version of nsmallest() and nlargest().Raymond Hettinger2004-11-292-4/+7
|
* RFC 2822 describes the characters allowed in a header field name. Conform toBarry Warsaw2004-11-292-1/+19
| | | | this, and add test cases.
* preparing for 2.4 final (wooooooo!)Anthony Baxter2004-11-291-1/+1
|
* There's likely nothing more to do to the email package before Python 2.4 isBarry Warsaw2004-11-291-1/+1
| | | | final, so I'm marking email's version number as "3.0" (e.g. final).
* Whitespace normalization.Tim Peters2004-11-281-6/+6
|
* Fix for SF bug #1072623. When the last line of the input string does not endBarry Warsaw2004-11-282-1/+16
| | | | | | | | | in a newline, and it's an end boundary, the FeedParser wasn't recognizing it as such. Tweak the regexp to make the ending linesep optional. For grins, clear self._partial when closing the BufferedSubFile. Added a test case.
* Fix typo in comment.Walter Dörwald2004-11-251-1/+1
|
* SF patch #1071739 (by Christos Georgiou)Fredrik Lundh2004-11-241-4/+9
| | | | | This patch offers a better explanation in case the MS VC++ (free) toolkit is installed but the .NET Framework SDK is not.
* SF bug #1071588 coercing decimal to int doesn't work between -1 and 1Raymond Hettinger2004-11-242-11/+11
|
* Have testLoadTkFailure() skip on cygwin since Tcl/Tk on cygwin renders to theBrett Cannon2004-11-241-1/+3
| | | | | | Windows GDI directly and thus does not need a DISPLAY environment variable. Thanks Jason Tishler.
* Bug #1071513: don't test on Cygwin, as chmod doesn't work reliably thereJohannes Gijsbers2004-11-231-1/+5
| | | | | | | (http://www.cygwin.com/faq/faq_3.html#SEC41). Also check whether onerror has actually been called so this test will fail on assertion instead of on trying to chmod a non-existent file.
* Add 'linux2' as one of the platforms that does not use the echo service as oneBrett Cannon2004-11-201-1/+2
| | | | of the test possiblities for testGetServBy().
* On OpenBSD, terminating IDLE with ctrl-c from the command line caused aKurt B. Kaiser2004-11-193-2/+12
| | | | | | | | stuck subprocess MainThread because only the SocketThread was exiting. M NEWS.txt M idlever.py M run.py
* 2.4rc1Anthony Baxter2004-11-182-2/+2
|
* Remove tempfile after use in test_call_string.Peter Astrand2004-11-171-1/+2
| | | | In test_args_string, remove the tempfile before assertEqual.
* Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set"Kurt B. Kaiser2004-11-161-0/+4
| | | | | button) caused IDLE to fail on restart (no new keyset was created in config-keys.cfg). Also true for Theme/highlights. Python Bug 1064535.
* Saving a Keyset w/o making changes (by using the "Save as New Custom Key Set"Kurt B. Kaiser2004-11-161-0/+3
| | | | | | | button) caused IDLE to fail on restart (no new keyset was created in config-keys.cfg). Also true for Theme/highlights. Python Bug 1064535. M configDialog.py
* Fix pprint to be able to handle objects that don't have a __repr__Walter Dörwald2004-11-151-2/+2
| | | | attribute. Fixes SF bug #1065456.
* Back out rev 1.96; see #1009389.Martin v. Löwis2004-11-141-1/+1
|
* The change in the linecache.checkcache() signature at rev 1.13 caused IDLE ↵Kurt B. Kaiser2004-11-132-6/+11
| | | | | | | | | to exit when an exception was raised while running w/o the subprocess. Python Bug 1063840 M NEWS.txt M PyShell.py
* SF bug 1065388: calendar day/month name lookup too slowTim Peters2004-11-132-16/+24
| | | | | | __getitem__() methods: compute only the new spellings needed to satisfy the given indexing object. This is purely an optimization (it should have no effect on visible semantics).
* Patch #1050475: Fix various x86_64 build issuesMartin v. Löwis2004-11-131-0/+4
| | | | | | regrtest.py: skip rgbimg and imageop as they are not built on 64-bit systems. _tkinter.c: replace %.8x with %p for printing pointers. setup.py: add lib64 into the library directories.
* Add options to regrtest.py to make it possible to specify where to putWalter Dörwald2004-11-121-8/+18
| | | | the coverage files when -T is used.
* SF bug 1054821: difflib HtmlDiff() extra space on inserted 1 character linesTim Peters2004-11-121-2/+2
| | | | Simple correction from the code's author (Dan Gass).
* Use os.chdir/os.getcwd instead of os.path.realpath, to support Tru64Peter Astrand2004-11-121-1/+6
| | | | TEMP dirs with {memb} strings. Fixes #1063571.
* On second thought: "Errors should never pass silently", so barf when aJust van Rossum2004-11-122-10/+16
| | | | string contains control chars that are illegal for XML
* testing control chars and non-dict root objectsJust van Rossum2004-11-121-0/+16
|
* - \f is not a valid XML characterJust van Rossum2004-11-121-3/+4
| | | | - reformatted regex pattern, use r"" consistently
* reordered a couple of thingsJust van Rossum2004-11-121-5/+6
|