| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
works on non-seekable file-like objects, such as URLs. (Oops.)
|
| |
|
| |
|
| |
|
|
|
|
| |
Reformatted with 4-space indent.
|
| |
|
|
|
|
|
| |
The constructor now takes an optional dictionary.
Use isinstance() where appropriate.
|
| |
|
|
|
|
| |
points out) it doesn't work in JPython Applets.
|
|
|
|
|
| |
writes a chunk of compressed data, closes it, writes another chunk, and
reads the contents back to verify that they are the same.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
allow using the 'a' flag as a mode for opening a GzipFile. gzip
files, surprisingly enough, can be concatenated and then decompressed;
the effect is to concatenate the two chunks of data.
If we support it on writing, it should also be supported on reading.
This *wasn't* trivial, and required rearranging the code in the
reading path, particularly the _read() method.
Raise IOError instead of RuntimeError in two cases, 'Not a gzipped file'
and 'Unknown compression method'
|
|
|
|
| |
Lockwood).
|
| |
|
| |
|
|
|
|
|
| |
Chris Lawrence sent me a broken version; this one is a tad simpler and
more conforming to the standard.
|
| |
|
|
|
|
|
| |
ProcessHierarchy's changes to support reading from a remote URL in
ProcessDatabase).
|
|
|
|
| |
different flush values Z_NO_FLUSH, Z_SYNC_FLUSH, Z_FULL_FLUSH.
|
| |
|
| |
|
|
|
|
|
| |
a much less formalistic way. Just keeping this around for possible
future reference.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Don't convert URLs to URLs using pathname2url.
|
|
|
|
|
|
|
|
|
|
|
| |
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]
|
| |
|
|
|
|
|
|
| |
The filename to URL conversion didn't properly quote special
characters.
The URL to filename didn't properly unquote special chatacters.
|
|
|
|
|
| |
Resource Description Framework, a metadata encoding, and .xsl is for
the Extensible Stylesheet Language.)
|
| |
|
|
|
|
| |
extra argument if data is None.
|
| |
|
|
|
|
| |
extra argument if data is None.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Lundh's example.
Converted comment to docstring.
|
|
|
|
| |
as such.
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 ;-)
|
|
|
|
|
| |
error and so it derives from Exception and not SystemError. The
docstring was incorrect but the implementation was fine.
|
|
|
|
| |
Discovered by Mitch Chapman.
|
|
|
|
| |
2. When no test case worked, raise ImportError instead of failing.
|
|
|
|
| |
list (of bsd variants that have a different lock structure).
|
| |
|