| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
incorrect for "uneven" timezones. This algorithm should work for even
timezones (e.g. America/New_York) and uneven timezones (e.g.
Australia/Adelaide and America/St_Johns).
Closes SF bug #483231.
|
|
|
|
|
| |
which has a different epoch than *nix. Jack may need to twiddle the
details.
|
|
|
|
|
|
|
|
| |
split parameters from the last path segment. Introduces two new functions,
urlsplit() and urlunsplit(), that do the simpler job of splitting the URL
without monkeying around with the parameters field, since that was not being
handled properly.
This closes bug #478038.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
load_inst(): Implement the security hook that cPickle already had.
When unpickling callables which are not classes, we look to see if the
object has an attribute __safe_for_unpickling__. If this exists and
has a true value, then we can call it to create the unpickled object.
Otherwise we raise an UnpicklingError.
find_class(): We no longer mask ImportError, KeyError, and
AttributeError by transforming them into SystemError. The latter is
definitely not the right thing to do, so we let the former three
exceptions simply propagate up if they occur, i.e. we remove the
try/except!
|
| |
|
|
|
|
|
|
| |
of multiple inheritance from a mix of new- and classic-style classes.
This is his patch, plus a start at some test cases from me. Will check
in more, plus a NEWS blurb, later tonight.
|
|
|
|
| |
to have single "expected output" file.
|
|
|
|
|
|
|
|
|
|
| |
This gives mmap() on Windows the ability to create read-only, write-
through and copy-on-write mmaps. A new keyword argument is introduced
because the mmap() signatures diverged between Windows and Unix, so
while they (now) both support this functionality, there wasn't a way to
spell it in a common way without introducing a new spelling gimmick.
The old spellings are still accepted, so there isn't a backward-
compatibility issue here.
|
| |
|
| |
|
|
|
|
| |
addresses. Commented out because it still takes too long to run.
|
| |
|
|
|
|
|
| |
for dumbdbm.py, by Skip Montanaro. The first half of Skip's patch has
been postponed until Py2.3 since it adds new features.
|
|
|
|
| |
field exists with an empty value.
|
|
|
|
| |
IndexError when a Date: field exists with an empty value.
|
|
|
|
| |
Tom Loredo.
|
|
|
|
|
| |
socket.gaierror. :( This allows test_socket to pass on a RH6.1-ish
Linux system.
|
|
|
|
|
|
| |
Easy enough to catch assignment in the compiler. The perverse user
can still change the value of __debug__, but that may be the least he
can do.
|
|
|
|
|
|
| |
Easy enough to catch assignment in the compiler. The perverse user
can still change the value of __debug__, but that may be the least he
can do.
|
|
|
|
|
|
|
| |
message for bad mode argument -- so that it doesn't fail on Windows.
It's hack. We know that errno is set to 0 in this case on Windows, so
check for that specifically.
|
| |
|
|
|
|
| |
strptime() -- I'm too lazy to code it otherwise.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
rfc822.py. The old rfc822.formatdate() produced date strings using
obsolete syntax. The new version produces the preferred RFC 2822
dates.
Also, an optional argument `localtime' is added, which if true,
produces a date relative to the local timezone, with daylight savings
time properly taken into account.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix contributed by Jeffrey C. Ollie.
I haven't tested the fix because the situation is non-trivial to
reproduce.
The basic solution is to get rid of the __current_realm attribute of
authentication handlers. Instead, prevent infinite retries by
checking for the presence of an Authenticate: header in the request
object that exactly matches the Authenticate: header that would be
added.
The problem prevent authentication from working correctly in the
presence of retries.
Ollie mentioned that digest authentication has the same problem and I
applied the same solution there.
|
|
|
|
|
|
|
| |
Fix by Neil Schemenauer. Visit the Subscript node when trying to find
the operation for a statement.
XXX Not sure if there are other nodes that should be visited.
|
|
|
|
|
|
| |
If fopen() fails with EINVAL it means that the mode argument is
invalid. Return the mode in the error message instead of the
filename.
|
| |
|
| |
|
| |
|
|
|
|
| |
Also delegate kw arguments through ** calls.
|
|
|
|
|
| |
referenced, WeakKeyDictionary.has_key() should return 0 instead of raising
TypeError.
|
|
|
|
|
|
| |
referencable (weakref.ref() raises TypeError), return 0 instead of
propogating the TypeError.
This closes SF bug #478536; bugfix candidate.
|
|
|
|
| |
in the presence of empty-string arguments.
|
|
|
|
|
|
| |
ntpath.join('a', '') was producing 'a' instead of 'a\\' as in 2.1.
Impossible to guess what was ever *intended*, but since split('a\\')
produces ('a', ''), I think it's best if join('a', '') gives 'a\\' back.
|
|
|
|
| |
#477864.
|
|
|
|
| |
does not share data with the original.
|
|
|
|
|
|
| |
original by replacing self.data temporarily, then using the update() method
on the new mapping object to populate it.
This closes SF bug #476616.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
__getaddr(): Watch out for empty addresses that can happen when
something like "MAIL FROM:<CR>" is received. This avoids the
IndexError and rightly returns an SMTP syntax error.
parseargs(): We didn't handle the 2-arg case where both the localspec
and the remotespec were provided on the command line.
|
|
|
|
|
|
| |
and NEWS. Bugfix candidate? That's a dilemma for Anthony <wink>: /F
did fix a longstanding bug here, but the fix can cause code to raise an
exception that previously worked by accident.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
module
|