| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Separate the Chunk class out of the aifc module into a new "chunk" module.
|
|
|
|
|
|
| |
all processing instruction target names containing 'xml' were
rejected, instead (as the standard rejects) only the name 'xml' itself
(or case variants thereof).
|
|
|
|
| |
'chmod()' in 'copy_file()'.
|
| |
|
|
|
|
|
|
|
|
|
| |
I guess in 1.5.2 a new module, whichdb, was added that attempts to
divine the nature of a database file. This module doesn't know anything
about Berkeley DB v2 files. In v2, Sleepycat added a 12-byte null pad
in front of the old magic numbers (at least for hash and btree files).
I've been using v2 for awhile and upgrading to 1.5.2 broke all my
anydbm.open calls. I believe the following patch corrects the problem.
|
|
|
|
|
|
|
|
|
|
| |
appreciably. Triple-quoted strings no longer confuse it, nor nested
classes or defs, nor comments starting in column 1. Chews thru
Tkinter.py in < 3 seconds for me; doctest.py no longer confuses it; no
longer missing methods in PyShell.py; etc. Also captures defs
starting in column 1 now, but ignores them; an interface should be
added so that IDLE's class browser can show the top-level functions
too.
|
|
|
|
|
|
|
| |
'install_site_lib' and install_site_platlib' on non-POSIX platforms.
Should at least work for NT, as this is adopted from Amos Latteier's NT
patches. Also added extensive comments bitching about the inadequacy of
the current model, both under POSIX and NT (and probably other) systems.
|
|
|
|
|
|
|
| |
'run_command()' to refer to it before attempting to run a command --
that way, command classes can freely invoke other commands without fear
of duplicate execution.
Beefed up some comments and docstrings.
|
|
|
|
| |
Amos Latteier <amos@aracnet.com>).
|
|
|
|
|
|
|
|
|
| |
It wasn't hard to speed pyclbr by a factor of 3, and I'll attach an
experimental patch for that (experimental because barely tested). Uncomment
the new "String" stuff and it will deal with strings correctly (pyclbr
currently ignores the possibility), but that slows it down a lot. Still
faster in the end than current pyclbr, but-- frankly --I'd rather have the
dramatic speedup!
|
|
|
|
|
| |
parse_qs() but returns a list of (name, value) pairs -- which is
actually more correct. Use this where it makes sense.
|
|
|
|
|
|
| |
content-type to application/x-www-form-urlencoded only when the method
is POST. Ditto for when the content-type is unrecognized -- only
fall back to urlencoded with POST.
|
|
|
|
| |
Here's the correct patch!
|
|
|
|
|
|
| |
these happen to be 'closed' and 'softspace', which may change!
Noted by Dave Ascher (with slightly different solution).
|
| |
|
|
|
|
| |
arguments. [Slightly changed from submitted patch.]
|
|
|
|
|
|
|
|
|
| |
I noticed while watching (with lsof) my forking SocketServer app running
that I would get multiple processes listening to the socket. For the most
part, this doesn't hurt things, but if you terminate the server, this can
prevent it from restarting because it cannot bind to the port due to any
running children which also have the socket open. The following one-liner
fixes this.
|
| |
|
|
|
|
| |
<piers@cs.su.oz.au>.
|
|
|
|
|
| |
(The difference between grid_remove() and grid_forget() is that the
former remembers the options for the slave.)
|
|
|
|
| |
(I tweaked it slightly so examples are allowed to have no date too.)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
(Andrew Dalke & kjpylint)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Make error an alias for ValueError.
(Andrew Dalke & kjpylint)
|
|
|
|
| |
This will enlighten Andrew Dalke; I don't know about kjpylint. :-)
|
|
|
|
| |
undefined 'nframes'. Should be self._nframes. (Andrew Dalke & kjpylint)
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
meaningful return values: respectively, whether the copy was done, and
the list of files that were copied. This meant some trivial changes in
core.py as well: the Command methods that mirror 'copy_file()' and
'copy_tree()' have to pass on their return values.
|
|
|
|
|
|
|
|
|
| |
of the 'install_py' command rather than 'build_py'. Obviously, this
meant that the 'build_py' and 'install_py' modules had to change; less
obviously, so did 'install' and 'build', since these higher-level
commands must make options available to control the lower-level
commands, and some compilation-related options had to migrate with the
code.
|
|
|
|
| |
accepts long month names. One essential line was missing. Fixed now.
|
|
|
|
|
| |
Message.getheaders(): Method to get list of all values for each
instance of a named header. See docstring for more.
|
|
|
|
|
| |
for an old bug that's been gone a while, but was still documented
until a few minutes from now.
|
|
|
|
|
|
|
|
| |
(1) Fix reference to pwd.error to be KeyError -- there is no pwd.error
and pwd.getpwnam() raises KeyError on failure.
(2) Add cookie support, by placing the 'Cookie:' header, if present,
in the HTTP_COOKIE environment variable.
|
|
|
|
|
| |
platforms where tell() returns a long. (Perhaps tell() should be
fixed too?) Reported by Greg Humphreys.
|
|
|
|
|
|
|
| |
Two problems: The SMTPRecipientsRefused class should not inherit
SMTPResponseException, since it doesn't provide the smtp_code and
smtp_error attributes. My patch for not adding an extra CRLF was
apparently forgotten. The enclosed patch fixes these two problems.
|
|
|
|
|
|
| |
terminated; this makes the final assert in the self-test code fail if
the parent runs faster than the children. Fix this by calling wait()
on the remaining children instead.
|
|
|
|
|
| |
(Idea by Jeff Bauer, code by Jeremy, renamed and "Date:" constant
stripped from return value by GvR.)
|
| |
|