| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
manipulation routines can be used on non-Mac platforms (e.g. to
manipulate pathnames in a Mac specific archive).
|
|
|
|
| |
doesn't cause a traceback.
|
| |
|
| |
|
|
|
|
|
|
| |
disturbing the current exception, and returning tb.tb_lineno, which is
the line number of thr traceback, rather than the current line number.
By Jim Hugunin.
|
|
|
|
|
| |
of the variables known to hold arguments, but that's as close as I can
get, and generally it's close enough).
|
| |
|
|
|
|
| |
has no line number table etc.
|
| |
|
| |
|
|
|
|
| |
the socket.
|
|
|
|
| |
characters \, 0, 0, 0.
|
|
|
|
|
|
|
|
| |
Miller, who complained that its kurtosis was bad, and then fixed by
Lambert Meertens (author of the original algorithm) who discovered
that the mathematical analysis leading to his solution was wrong, and
provided a corrected version. Mike then tested the fix and reported
that the kurtosis was now good.
|
|
|
|
|
| |
In login(), force passwd and acct to '' when they are None (this can
happen in the test program!).
|
|
|
|
|
|
|
| |
string.replace(...)) instead of a for loop).
Don't call normcase() in normpath() -- the filesystem just might be
case preserving...
|
|
|
|
| |
local time -- that's better than failure.
|
|
|
|
|
|
|
| |
(2) Fix normcase() to use string.lower() and string.replace() -- it
turns out that the table constructed for translate() didn't work in
locales that have a different number of lowercase and uppercase
letters.
|
| |
|
|
|
|
|
|
|
|
| |
First, the RNG in whrandom.py sucks if you let it seed itself from the time.
The problem is the line:
t = int((t&0xffffff) | (t>>24))
Since it ORs the two parts together, the resulting value has mostly
ON bits. Change | to ^, and you don't lose any randomness.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
most recently opened URL in self.openedurl of the URLopener instance.
This doesn't really work if multiple threads share the same opener
instance!
Fix: openedurl was actually simply the type prefix (e.g. "http:")
followed by the rest of the URL; since the rest of the URL is
available and the type is effectively determined by where you are in
the code, I can reconstruct the full URL easily, e.g. "http:" + url.
|
|
|
|
| |
Code by David Ascher (docstring by me).
|
|
|
|
|
|
| |
- use the tempcache in the open() method, too.
- use the "unwrap"ped url as key for the tempcache.
|
|
|
|
|
| |
(2) Provisional hack to avoid dying when trying to turn echo on or off
on Macs, where os.system() doesn't exist.
|
|
|
|
| |
from regrtest.py (it still works there too, of course).
|
|
|
|
|
| |
Ok, I fixed the quotes, along with a bug or two.
Also added another exception.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The main incompatibility is that the error reporting method is now
called as
parser.syntax_error(msg)
instead of
parser.syntax_error(lineno, msg)
This new version also has some code to deal with the <?xml?> and
<!DOCTYPE> tags at the start of an XML document.
The documentation has been updated, and a small test module has been
created.
|
|
|
|
|
|
|
|
|
|
|
| |
Here's my suggested replacement for gzip.py for 1.5.1. I've
re-implemeted methods readline and readlines, added an _unread, and
tweaked read and _read.
I tried a more complicated buffer scheme for unread (using a list of
strings and string.join), but it was more complicated and slower.
This version is a lot faster than the current version and is still
pretty simple.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixed problems when unpickling in restricted execution environments.
These methods try to assign to an instance's __class__ attribute, or
access the instances __dict__, which are prohibited in REE. For the
first two methods, I re-implemented the old behavior when assignment
to value.__class__ fails.
For the load_build() I also re-implemented the old behavior when
inst.__dict__.update() fails but this means that unpickling in REE is
semantically different than unpickling in unrestricted mode.
|
|
|
|
|
| |
a copy of the defaults dictionary and merges the section's dictionary
into it so that sections can override the defaults.
|
|
|
|
|
|
| |
- added docstrings
- support option to specify a different purported directory name
- reindented with 4 spaces
|
| |
|
|
|
|
| |
would set the transfer to text mode instead of the specified mode.
|
| |
|
|
|
|
|
|
| |
HTTP/1.x 200
instead of
HTTP/1.x 200 OK
|
|
|
|
|
|
| |
- fix type_to_name(); it never worked
- add path_to_selector()
add path_to_datatype_name()
|
|
|
|
|
|
|
| |
Added an optional third parameter giving the purported filename for
error messages from the module.
Append a newline to the code string if needed.
|
| |
|
| |
|
| |
|
|
|
|
| |
sys.prefix is no longer empty on any platform that I know of.
|
|
|
|
|
|
|
| |
(1) maxsplit was ignored in split().
(2) groups() would return a string instead of a singleton tuple when
there was only one group.
|
| |
|
|
|
|
|
| |
Added _test() that behaves (a bit) like gzip.
Fix a comment (*sequential* access is okay -- *random* access it out!)
|
| |
|
| |
|
| |
|
|
|
|
| |
patches provided by Greg (am I glad I sent him my latest version!).
|