| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Bernhard Reiter <bernhard@csd.uwm.edu>.
|
| |
|
|
|
|
|
| |
support. (Based on comment on the documentation by Bernhard Reiter
<bernhard@csd.uwm.edu>).
|
|
|
|
|
|
| |
and dry-run flags consistently painless): 'execute()', 'mkpath()',
'copy_file()', 'copy_tree()', 'make_file()', and stub for 'make_files()'
(not sure yet if it's useful).
|
|
|
|
|
|
|
|
| |
that wrap them in the Command class).
Fixed 'copy_file()' to use '_copy_file_contents()', not 'copyfile()'
from shutil module -- no reference to shutil anymore.
Added "not copying" announcement in 'copy_file()'.
Wee comment fix.
|
|
|
|
|
| |
and 'make_file()'-- that way, the verbose and dry-run flags are
handled for free.
|
|
|
|
| |
main() when imported (in other words, it is not usable as a module).
|
|
|
|
|
| |
In test_cpickle.py, the module os got imported, but the line to remove
the temp file has gone missing.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If you send something like "PUT / HTTP/1.0" to something derived from
BaseHTTPServer that doesn't define do_PUT, you will get a response
that begins like this:
HTTP/1.0 501 Unsupported method ('do_PUT')
Server: SimpleHTTP/0.3 Python/1.5
Date: Tue, 30 Mar 1999 18:53:53 GMT
The server should complain about 'PUT' instead of 'do_PUT'. This
patch should fix the problem.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
- It needlessly used the makefile() method for each response that is
read from the SMTP server.
- If the remote SMTP server closes the connection unexpectedly the
code raised an IndexError. It now raises an SMTPServerDisconnected
exception instead.
- The code now checks that all lines in a multiline response actually
contains an error code.
"""
The Dragon approves.
|
|
|
|
|
| |
Patch largely based on changes by Andrew Dalke, as discussed in the
distutils-sig.
|
|
|
|
| |
right thing "just happens" (basejoin() with old URL).
|
|
|
|
| |
The problem was reported by Moshe Zadka.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
"""
The GNU folks, in their infinite wisdom, have decided not to implement
altzone in libc6; this would not be horrible, except that timezone
(which is implemented) includes the current DST setting (i.e. timezone
for Central is 18000 in summer and 21600 in winter). So Python's
timezone and altzone variables aren't set correctly during DST.
Here's a patch relative to 1.5.2b2 that (a) makes timezone and altzone
show the "right" thing on Linux (by using the tm_gmtoff stuff
available in BSD, which is how the GLIBC manual claims things should
be done) and (b) should cope with the southern hemisphere. In pursuit
of (b), I also took the liberty of renaming the "summer" and "winter"
variables to "july" and "jan". This patch should also make certain
time calculations on Linux actually work right (like the tz-aware
functions in the rfc822 module).
(It's hard to find DST that's currently being used in the southern
hemisphere; I tested using Africa/Windhoek.)
"""
|
|
|
|
| |
works on non-seekable file-like objects, such as URLs. (Oops.)
|
| |
|
|
|
|
| |
middlename) Marangozov, patch coded by Greg Stein.
|
|
|
|
|
| |
Filled in some of the "blank" areas, and added another large blank
area for a LaTeX primer. (Still a lot to be done.)
|
| |
|
|
|
|
|
|
|
|
| |
I should have waited overnight <wink/sigh>. Nothing wrong with the one I
sent, but I couldn't resist going on to add new -r1 / -r2 cmdline options
for recreating the original files from ndiff's output. That's attached, if
you're game! Us Windows guys don't usually have a sed sitting around
<wink>.
|
|
|
|
|
|
|
| |
Attached is a cleaned-up version of ndiff (added useful module
docstring, now echo'ed in case of cmd line mistake); added -q option
to suppress initial file identification lines; + other minor cleanups,
& a slightly faster match engine.
|
| |
|
|
|
|
| |
killed. Discard the error in that case, but propogate it otherwise.
|
| |
|
| |
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
| |
is not an empty string, this means that you have arrived at the
end of the stream of compressed data, and the contents of .unused_data are
whatever follows the compressed stream.
|
|
|
|
| |
argument. This closes TODO item 2.19.
|
|
|
|
| |
This change was made long ago but the documentation was never updated.
|
|
|
|
|
|
| |
style sheet.
Small nits.
|
|
|
|
| |
requested Python tools/examples.
|
|
|
|
|
|
|
|
| |
Unfortunately his code breaks wcgui.py in a way that's not easy
to fix. I expect that this is a temporary situation --
eventually Sam's changes will be merged back in.
(The changes add a -t option to specify exceptions to the -x
option, and explicit checking for #foo style fragment ids.)
|
| |
|
| |
|