| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
always lowercasing the option name, call a method optionxform() which
can be overridden. Also make the regexps SECTRE and OPTRE non-private
variables so they can also be overridden.
|
|
|
|
|
| |
may raise an exception (when there are no children). Reported by
Andy Dustman.
|
|
|
|
|
|
|
|
| |
mode attribute of the file object (if it has one), otherwise
use 'rb'.
The documentation should still show this as required until
there's a new release.
|
|
|
|
| |
confusing to end users of IDEs.
|
|
|
|
|
|
|
| |
Added support for unseekable files.
(I use unqualified excepts since we don't know why the seek/tell might
fail. In my case it was because of an AttributeError.)
|
|
|
|
|
| |
and suggests putting a try/except around the get_request() call in
handle_request(). (All in class TCPServer.)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Problem: rfc822.py in 1.5.2 final loses the quotes around
quoted local-part names.
The fix is to preserve the quotes around a local-part
name in an address.
Test:
import rfc822
a = rfc822.AddrlistClass('(Comment stuff) "Quoted
name"@somewhere.com')
a.getaddrlist()
The correct result is:
[('Comment stuff', '"Quoted name"@somewhere.com')]
|
|
|
|
|
| |
Also added a short circuit for the regression test suite since CVS
insisted on putting this file in the main branch. :(
|
| |
|
|
|
|
| |
empty list instead of None. (Guido's request.)
|
|
|
|
|
| |
*missing* content-type at the outer level of a POST defaults to
urlencoded. In all other circumstances, the default is read_singe().
|
| |
|
|
|
|
|
|
| |
in the string module.
Add a bunch of new tests for extended startswith/endswith arguments.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Hammond: record top-level functions (as Function instances, a simple
subclass of Class). You must use the new interface readmodule_ex() to
get these, though.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
__init__.py it isn't read. (Sjoerd just came up with this, so it's
not heavily tested.)
Other (yet unsolved) package problems noted by Sjoerd:
- If you have a package and a module inside that or another package
with the same name, module caching doesn't work properly since the
key is the base name of the module/package.
- The only entry that is returned when you readmodule a package is a
__path__ whose value is a list which confuses certain class browsers
that I wrote. (Hm, this could be construed as a feature.)
|
|
|
|
| |
and quote_plus() can be optimized tenfold.
|
|
|
|
|
|
|
| |
I've found two places where smtplib.py sends an extra trailing space
on command lines to the SMTP server. I don't know if this ever causes
any problems, but I'd prefer to be on the safe side. The enclosed
patch removes the extra space.
|
|
|
|
| |
timestamp from GMT tuple.
|
|
|
|
| |
unreachable -- but fall back to using whatever hostname we have.
|
|
|
|
| |
math in the Chunk class.
|
|
|
|
| |
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.)
|
| |
|
| |
|
| |
|