| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
_make_boundary(): Fix for SF bug #745478, broken boundary calculation
in some locales. This code simplifies the boundary algorithm to use
randint() which is what we wanted anyway.
Bump package version to 2.5.3.
|
| |
|
|
|
|
|
|
| |
and 'type' arguments. This improves x-platform compatibility (e.g., on
Unix systems socket() already supported these default arguments).
No need to do anything here for 2.3 -- it already fixed this glitch in a
different way.
|
| |
|
|
| |
like an unbound method dumps core.
|
| |
|
|
|
| |
Also move the call of the test to the top; the crash is caused by a
double free.
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SF 742860: WeakKeyDictionary __delitem__ uses iterkeys
Someone review this, please! Final releases are getting close, Fred
(the weakref guy) won't be around until Tuesday, and the pre-patch
code can indeed raise spurious RuntimeErrors in the presence of
threads or mutating comparison functions.
See the bug report for my confusions: I can't see any reason for why
__delitem__ iterated over the keys. The new one-liner implementation
is much faster, can't raise RuntimeError, and should be better-behaved
in all respects wrt threads.
New tests test_weak_keyed_bad_delitem and
test_weak_keyed_cascading_deletes fail before this patch.
Backported the tests and the patch.
|
| |
|
|
| |
-L in stead. Fixes #723495.
|
| |
|
|
|
|
| |
Add a tp_new slot to function objects that handles the case of a
function requiring a closure. Put the function type in the new
module, rather than having a function new.function(). Add tests.
|
| | |
|
| |
|
|
| |
breakpoint
|
| | |
|
| |
|
|
|
|
| |
continuation lines in .po metadata caused a crash.
Also, export more symbols from __all__.
|
| |
|
|
|
|
| |
unnecessary redirection limit code which is already in FancyURLopener.
Backport of 1.12.
|
| |
|
|
|
|
|
|
| |
Instead of sending the real user and host, use "anonymous@" (i.e. no
host name at all!) as the default anonymous FTP password. This avoids
privacy violations.
Backport of 1.62, 1.63.
|
| | |
|
| |
|
|
| |
CPython/Jython.
|
| |
|
|
| |
about "pass". Now returns None.
|
| | |
|
| |
|
|
| |
#730963.
|
| | |
|
| |
|
|
|
|
| |
Windows when n is too big to fit in a 32-bit int. This was a hole in
2.2's large file support on Windows, and turns out it's a bad hole at
least for ZODB.
|
| |
|
|
|
| |
SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)
|
| |
|
|
|
| |
SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)
|
| |
|
|
|
|
|
| |
SF bug 557704: netrc module can't handle all passwords
Let netrc handle entries with login fields (mail servers for instance)
by having login default to ''.
|
| |
|
|
| |
Also fix typos in urllib lib doc.
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
| |
Fix SF bug #697220, string.strip implementation/doc mismatch
Attempt to make all the various string/unicode *strip methods the same.
* Doc - add doc for when functions were added
* UserString
* string/unicode object methods
* string module functions
'chars' is used for the last parameter everywhere.
|
| | |
|
| |
|
|
| |
to old-style classes. New-style classes remain vulnerable in 2.2.
|
| |
|
|
|
| |
typed_subpart_iterator(): Fix these to use non-deprecated APIs,
i.e. get_content_maintype() and get_content_subtype().
|
| | |
|
| |
|
|
|
|
|
|
| |
revision 1.27
date: 2003/03/30 20:46:47; author: bwarsaw; state: Exp; lines: +3 -3
__unicode__(): Fix the logic for calculating whether to add a
separating space or not between encoded chunks. Closes SF bug
#710498.
|
| |
|
|
|
| |
that were still open. Made the tail end of the test look more like
the CVS head version.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
pack_float, pack_double, save_float: All the routines for creating
IEEE-format packed representations of floats and doubles simply ignored
that rounding can (in rare cases) propagate out of a long string of
1 bits. At worst, the end-off carry can (by mistake) interfere with
the exponent value, and then unpacking yields a result wrong by a factor
of 2. In less severe cases, it can end up losing more low-order bits
than intended, or fail to catch overflow *caused* by rounding.
|
| |
|
|
| |
'release22-maint'.
|
| |
|
|
|
|
|
| |
invalid, rather than returning a string of random garbage of the
estimated result length. Closes SF patch #703471 by Hye-Shik Chang.
Backport from 2.3.
|
| |
|
|
|
|
| |
When the null string is used as the terminator, it used to be the same
as None, meaning "collect all the data". In the current code, however, it
falls into an endless loop; this change reverts to the old behavior.
|
| |
|
|
| |
completion was botched.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
Fix from SF patch #633359 by Greg Chapman for SF bug #610299:
The problem is in sre_compile.py: the call to
_compile_charset near the end of _compile_info forgets to
pass in the flags, so that the info charset is not compiled
with re.U. (The info charset is used when searching to find
the first character at which a match could start; it is not
generated for patterns beginning with a repeat like '\w{1}'.)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix an old bug in poll(). When a signal is handled while we're
blocked in select(), this will raise select.error with errno set to
EINTR. The except clauses correctly ignores this error, but the rest
of the logic will then call read() for all objects in select's *input*
list of read file descriptors. Then when an object's read_handler()
is naive, it will call recv() on its socket, which will raise an
IOError, and then asyncore decides to close the socket. To fix this,
we simply return in this case.
Backport candidate.
Backport 1.40:
Fix spelling error
|
| | |
|
| | |
|