summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* http_error had the 'data is None' test backwards. don't call with theJeremy Hylton1999-02-251-4/+3
| | | | extra argument if data is None.
* change indentation from 8 spaces to 4 spacesJeremy Hylton1999-02-251-878/+859
|
* pleasing the tabnannyJeremy Hylton1999-02-251-11/+11
|
* Oops, one more "x, y, z" to convert...Fred Drake1999-02-251-1/+1
|
* Adjusted comment at the top to be less confusing, following FredrikFred Drake1999-02-251-14/+16
| | | | | | Lundh's example. Converted comment to docstring.
* Moved whatsound to lib-old/, since it was declared obsolete and is documentedFred Drake1999-02-241-1/+0
| | | | as such.
* Use sndhdr instead of the obsolete whatsound module.Fred Drake1999-02-241-2/+2
|
* When performing a POST request, i.e. when the second argument toJeremy Hylton1999-02-241-11/+27
| | | | | | | urlopen is used to specify form data, make sure the second argument is threaded through all of the http_error_NNN calls. This allows error handlers like the redirect and authorization handlers to properly re-start the connection.
* Patch by Lars Wirzenius:Guido van Rossum1999-02-241-3/+7
| | | | | | | | | | | | | | | | o the initial comment is wrong: creating messages is already implemented o Message.getbodytext: if the mail or it's part contains an empty content-transfer-encoding header, the code used to break; the change below treats an empty encoding value the same as the other types that do not need decoding o SubMessage.getbodytext was missing the decode argument; the change below adds it; I also made it unconditionally return the raw text if decoding was not desired, because my own routines needed that (and it was easier than rewriting my own routines ;-)
* Document the correct class hierarchy for SystemExit. It is not anBarry Warsaw1999-02-241-5/+6
| | | | | error and so it derives from Exception and not SystemError. The docstring was incorrect but the implementation was fine.
* Add import sys, needed by reference to sys.exc_info() in rmtree().Guido van Rossum1999-02-231-0/+1
| | | | Discovered by Mitch Chapman.
* 1. Print the error message (carefully) when a dl.open() fails in verbose mode.Guido van Rossum1999-02-231-3/+4
| | | | 2. When no test case worked, raise ImportError instead of failing.
* According to Jeffrey Honig, bsd/os 2.0 - 4.0 should be added to theGuido van Rossum1999-02-231-2/+6
| | | | list (of bsd variants that have a different lock structure).
* According to Jeffrey Honig, bsd/os 4.0 should be added to the list.Guido van Rossum1999-02-231-1/+3
|
* As Des Barry points out, we need to call pathname2url(file) in twoGuido van Rossum1999-02-221-2/+2
| | | | calls to addinfourl() in open_file().
* As Finn Bock points out, _P_WAIT etc. don't have a leading underscoreGuido van Rossum1999-02-221-3/+1
| | | | so they don't need to be treated specially here.
* Steve Clift pointed out that 'file' allows a netloc.Guido van Rossum1999-02-221-0/+1
|
* Dang. Even though this is obsolete code, somebody found a bug, and IGuido van Rossum1999-02-221-1/+1
| | | | fix it. Oh well.
* Bow to font-lock at the end of the docstring, since it throws stuffFred Drake1999-02-181-2/+2
| | | | | | | off. Make sure the path paramter to readmodule() is a list before adding it with sys.path, or the addition could fail.
* _safe_repr(): Simplify the condition tests in the first possibleFred Drake1999-02-171-7/+2
| | | | return path.
* The usualGuido van Rossum1999-02-162-1/+44
|
* In open_ftp(), check that retrlen is not None before using it in a %d format!Guido van Rossum1999-02-161-1/+1
|
* Fix by Chris Petrilli (to his own code) to limit the number ofGuido van Rossum1999-02-121-1/+3
| | | | iterations looking for expansions to 10.
* Mod by Jack Jansen: on Macintosh, use EasyDialogs.GetPassword if itGuido van Rossum1999-02-111-1/+8
| | | | exists.
* Patch by Steve Clift -- fix the indices now that f_fsid is no longer returned!Guido van Rossum1999-02-101-5/+2
|
* The usual.Guido van Rossum1999-02-094-71/+131
|
* Tim Peters:Guido van Rossum1999-02-081-42/+40
| | | | | | | | | | | | | | + Implements a put_nowait method. + Adds a corresponding Queue.Full exception. + Simplifies the implementation by adding optional "block" args to get() and put(), and makes the old get_nowait() and new put_nowait() one-line redirections to get() and put(). + Uses (much) simpler logic for the nowait cases. + Regularizes the doc strings to something closer to "Guido style" <wink>. + Converts two stray tabs into spaces. + Removes confusing verbiage about the queue "not being available" from the docstrings -- never knew what that meant as a user, and after digging into the implementation still didn't know what it was trying to say.
* Put a try-except around the "image delete" call in Image.__del__ toGuido van Rossum1999-02-081-2/+6
| | | | avoid tracebacks when the root is destroyed before the image object.
* Ehm, when we don't need to byteswap the data, don't go through anGuido van Rossum1999-02-051-6/+4
| | | | array object at all.
* Two important fixes:Guido van Rossum1999-02-051-3/+12
| | | | | | | (1) on a little-endian platform, don't byteswap; (2) in _patchheader(), there was a missing self._file argument to a _write_long() call.
* The encoding type was wrong, I think.Guido van Rossum1999-02-051-0/+0
|
* Should open files in binary mode!Guido van Rossum1999-02-051-9/+2
| | | | | | | | | | | Also finally get rid of some obsolete commented-out access statements. A note about the previous checkin: I believe it's correct, but I found something strange: the file Lib/test/audiotest.au in the Python distribution was evidently encoded in u-LAW format but had its encoding set to 2, i.e. linear-8. I hope that this is a mistake caused by some conversion program that produced this .au file; I just found it on a website.
* Shouldn't be treating linear-8 as u-law!Guido van Rossum1999-02-051-1/+2
|
* New test for ntpath moduleGuido van Rossum1999-02-032-0/+43
|
* New splitdrive() that knows about UNC paths (e.g., network paths likeGuido van Rossum1999-02-031-26/+50
| | | | | | \\host\mountpoint\dir\file). By Larry Hastings. Also cleaned up some docstrings.
* Fredrik Lundh fixes Sjoerd's patch...Guido van Rossum1999-02-021-7/+7
| | | | | """Sjoerd's version stores unbound methods. that's not good enough ;-) Here's an alternative implementation of fixdict."""
* Patch by Sjoerd Mullender to placate /F:Guido van Rossum1999-02-021-4/+12
| | | | | | | | | Fix leaking of instances by removing the elements variable that we created on closing the parser. The elements variable is now created in the reset() method, so that the sequence close(); reset(); ... works. Also, add the name of the entity reference that wasn't found to the error message.
* Special-case _P_WAIT etc. for NT.Guido van Rossum1999-02-011-4/+7
|
* Patch by Sjoerd Mullender for better compatibility with the versionGuido van Rossum1999-02-011-0/+25
| | | | | | | | | from Python 1.5.1: If after __init__ finishes no new elements variable was created, this patch will search the instance's namespace for all attributes whose name start with start_ or end_ and put their value in a new elements instance variable.
* From: Mike Orr <mso@oz.net>Guido van Rossum1999-01-301-1/+1
| | | | | | | | | | | In the docstring of ConfigParser.py (Python 1.5.2b1): read(*filenames) -- read and parse the list of named configuration files should be: read(filenames) -- read and parse the list of named configuration files The method accepts a list, not a bunch of positional arguments. Which is good, the list is much more convenient.
* Embarrassing: remove a debug print statement from set_break() for theGuido van Rossum1999-01-291-1/+0
| | | | second time!
* Use win32api.GetFullPathName(path) if it exists to implement abspath().Guido van Rossum1999-01-291-3/+7
|
* Support a canonical() method, implementable by a derived class, to beGuido van Rossum1999-01-291-6/+20
| | | | | | | | applied to all filenames before they are compared, looked up in the breaks dictionary, etc. The default implementation does nothing -- it's implented as fast as possible via str(). A useful implementation would make everything a absolute, e.g. return os.path.normcase( os.path.abspath(filename)).
* Add abspath()Guido van Rossum1999-01-294-0/+28
|
* Added a -s option which is useful for narrowing down memory leaks.Barry Warsaw1999-01-281-4/+42
| | | | | With -s only a single test is run. The next test run is chosen sequentially from the list of all tests.
* Added a new test for old filter() memory leakBarry Warsaw1999-01-281-0/+17
|
* Improvement of b/w compat note in help text for clear, by Richard Wolff.Guido van Rossum1999-01-281-1/+2
|
* Slight reworking of this test. If nis.maps() gives a nis.error, thenBarry Warsaw1999-01-281-2/+5
| | | | | raise an ImportError if not running verbose. This signals to the regression framework that this test isn't applicable.
* Get rid of do_clear_break / do_clb command -- it is redundant.Guido van Rossum1999-01-271-20/+0
| | | | (It was left in accidentally after a long and arduous 3-way patch session.)
* Re-format the module docstring and document the new get() argument.Barry Warsaw1999-01-261-26/+29
|