summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Added simple test for the flush() method of compression objects, trying theAndrew M. Kuchling1999-03-221-0/+13
| | | | different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.
* Bug reported by Tobias Thelen: missing "self." in assignment target.Guido van Rossum1999-03-221-1/+1
|
* First checkin of real Distutils command modules.Greg Ward1999-03-226-0/+448
|
* Obsolete source file -- command options are actually implemented inGreg Ward1999-03-221-111/+0
| | | | | a much less formalistic way. Just keeping this around for possible future reference.
* First checkin of real Distutils code.Greg Ward1999-03-225-0/+1131
|
* New code for split() by Tim Peters, behaves more like posixpath.split().Guido van Rossum1999-03-192-40/+25
|
* Added BufferType, the type returned by the new builtin buffer(). Greg Stein.Guido van Rossum1999-03-191-0/+1
|
* Sjoerd Mullender writes:Guido van Rossum1999-03-181-2/+2
| | | | | | | | | | If a filename on Windows starts with \\, it is converted to a URL which starts with ////. If this URL is passed to urlparse.urlparse you get a path that starts with // (and an empty netloc). If you pass the result back to urlparse.urlunparse, you get a URL that starts with //, which is parsed differently by urlparse.urlparse. The fix is to add the (empty) netloc with accompanying slashes if the path in urlunparse starts with //. Do this for all schemes that use a netloc.
* Sjoerd Mullender writes:Guido van Rossum1999-03-181-0/+10
| | | | | | | | Pathnames of files on other hosts in the same domain (\\host\path\to\file) are not translated correctly to URLs and back. The URL should be something like file:////host/path/to/file. Note that a combination of drive letter and remote host is not possible.
* Delete non-standard-conforming code in urljoin() that would use theGuido van Rossum1999-03-171-12/+0
| | | | | | | | | | | | | | | | | | | | | | netloc from the base url as the default netloc for the resulting url even if the schemes differ. Once upon a time, when the web was wild, this was a valuable hack because some people had a URL referencing an ftp server colocated with an http server without having the host in the ftp URL (so they could replicate it or change the hostname easily). More recently, after the file: scheme got added back to the list of schemes that accept a netloc, it turns out that this caused weirdness when joining an http: URL with a file: URL -- the resulting file: URL would always inherit the host from the http: URL because the file: scheme supports a netloc but in practice never has one. There are two reasons to get rid of the old, once-valuable hack, instead of removing the file: scheme from the uses_netloc list. One, the RFC says that file: uses the netloc syntax, and does not endorse the old hack. Two, neither netscape 4.5 nor IE 4.0 support the old hack.
* Bug reported by Jim Robinson:Guido van Rossum1999-03-161-4/+22
| | | | | | | | | An attempt to execute grid_slaves with arguments (0,0) results in *all* of the slaves being returned, not just the slave associated with row 0, column 0. This is because the test for arguments in the method does not test to see if row (and column) does not equal None, but rather just whether is evaluates to non-false. A value of 0 fails this test.
* Yet another patch by Sjoerd Mullender:Guido van Rossum1999-03-151-2/+2
| | | | Don't convert URLs to URLs using pathname2url.
* Patch by Michael Scharf. He writes:Guido van Rossum1999-03-121-0/+9
| | | | | | | | | | | The module cmd requires for each do_xxx command a help_xxx function. I think this is a little old fashioned. Here is a patch: use the docstring as help if no help_xxx function can be found. [I'm tempted to rip out all the help_* functions from pdb, but I'll resist it. Any takers? --Guido]
* Remove stuff with unsure copyright statusGuido van Rossum1999-03-122-108/+0
|
* From: Sjoerd MullenderGuido van Rossum1999-03-122-23/+17
| | | | | | The filename to URL conversion didn't properly quote special characters. The URL to filename didn't properly unquote special chatacters.
* Added .rdf and .xsl as application/xml types. (.rdf is for theFred Drake1999-03-111-0/+2
| | | | | Resource Description Framework, a metadata encoding, and .xsl is for the Extensible Stylesheet Language.)
* Test for popen2 module, by Chris Tismer.Guido van Rossum1999-03-112-0/+22
|
* open_http also had the 'data is None' test backwards. don't call with theGuido van Rossum1999-03-091-3/+2
| | | | extra argument if data is None.
* Added collapse_ws option.Greg Ward1999-03-081-0/+5
|
* 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
|