| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
|
|
|
| |
more similar.
|
|
|
|
| |
changes from start of branch upto r22b2 were already merged, of course).
|
|
|
|
|
| |
fixes the problem reported in SF bug #477023 (Jonathan Mark): "pdb:
unexpected path confuses Emacs".
|
|
|
|
|
|
| |
ZipFile.__del__(): call ZipFile.close(), like its docstring says it does.
ZipFile.close(): allow calling more than once (as all file-like objects
in Python should support).
|
| |
|
|
|
|
|
|
|
|
| |
output.
Patch includes additional test case test_basic_line_wrap().
This patch is a candidate for Python 2.1.2.
|
| |
|
|
|
|
|
|
|
|
| |
More changes to the formatdate epoch test: the Mac epoch is in
localtime, so east of GMT it falls in 1903:-( Changed the test to
obtain the epoch in both local time and GMT, and do the right
thing in the comparisons. As a sanity measure also check that
day/month is Jan 1.
|
|
|
|
|
|
| |
_verify(): Pass in the values of globals insted of eval()ing their
names. The use of eval() was obscure and unnecessary, and the patch
claimed random.py couldn't be used in Jython applets because of it.
|
|
|
|
|
| |
Expose Tix.ResizeHandle.{detach_widget,hide,show}.
Update Tix demos.
|
| |
|
|
|
|
|
|
| |
- Add tests for the recent fixes to copy_reg.py:
__getstate__/__setstate__ and mixed inheritance from new+classic
classes.
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Fix for SF bug #482752: __getstate__ & __setstate__ ignored (by Anon.)
In fact, only __getstate__ isn't recognized. This fixes that.
- Separately, the test for base.__flags__ & _HEAPTYPE raised an
AttributeError exception when a classic class was amongst the
bases. Fixed this with a hasattr() bandaid (classic classes never
qualify as the "hard" base class anyway, which is what the code is
trying to find).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This patch also does away with an incompatibility between Jython
and CPython.
|
| |
|
|
|
|
|
| |
test_formatdate_zoneoffsets() => test_formatdate_localtime(): Do the
sign corrected calculation of the zone offset.
|
|
|
|
|
|
| |
negative modulus won't return the right values. So always do positive
modulus on an absolute value and twiddle the sign as appropriate after
the fact.
|
|
|
|
|
|
|
|
|
|
|
| |
use the correct way to test for epoch, by looking at the year
component of gmtime(0). Add clause for Unix epoch and Mac epoch (Tim,
what is Windows epoch?).
Also, get rid of the strptime() test, it was way too problematic given
that strptime() is missing on many platforms and issues with locales.
Instead, simply test that formatdate() gets the numeric timezone
calculation correct for the altzone and timezone.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|