| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Patches #1298449 and #1298499: Add some missing checks for error
returns in cStringIO.c. Thanks to Andrew Bennetts.
This must be a backport candidate.
|
| |
|
|
|
|
|
| |
functions, causing the profiler to crash on an AssertionError if the same
Python function catches multiple exceptions from C functions.
|
|
|
|
|
|
|
|
|
|
| |
test_default_encoding_issues(): Fully restore sys.setdefaultencoding.
test_site often failed under "regrtest.py -r", because this xmlrpc test
left sys with a setdefaultencoding attribute, but loading site.py removes
that attribute and test_site.py verifies the attribute is gone. Changed
this test to get rid of sys.setdefaultencoding if it didn't exist when
this test started.
|
|
|
|
|
|
| |
considering it exactly like a '*'.
Backport from 2.5 branch.
|
| |
|
|
|
|
| |
Backport of fix for bug #1290505.
|
|
|
|
|
| |
with IBM's 64-bit compiler (SF patch #1284289). This also closes SF
bug #105470: test_pwd fails on 64bit system (Opteron).
|
|
|
|
|
|
| |
SF bug #1251300: On UCS-4 builds the "unicode-internal" codec will now complain
about illegal code points. The codec now supports PEP 293 style error handlers.
(This is a variant of the patch by Nik Haldimann that detects truncated data)
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
not unix
|
|
|
|
|
|
| |
Fix over-aggressive PyErr_Clear(). The same code fragment appears in
various guises in list.extend(), map(), filter(), zip(), and internally
in PySequence_Tuple().
|
|
|
|
|
|
|
| |
restores the tracing of a 'return' event for exceptions that cause a function
to exit. Also, update the unit test.
I will port to Python 2.5.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
and set.discard for handling keys that both inherite from set and
define their own __hash__() function.
* Fixed O(n) performance issue with set.pop() which should have been
an O(1) process.
|
|
|
|
| |
(backported from trunk urlparse.py 1.48, test_urlparse.py 1.15)
|
| |
|
|
|
|
|
|
| |
Make attributes and local variables in the StreamReader str objects instead
of unicode objects, so that codecs that do a str->str decoding won't promote
the result to unicode. This fixes SF bug #1241507.
|
| |
|
| |
|
|
|
|
|
| |
Reverts 1.26 and 1.27.
And adds cycle testing.
|
|
|
|
|
| |
Don't use 'is not' to compare strings.
(spotted by reading pypy-svn :)
|
| |
|
|
|
|
| |
single null byte; test a null byte in all encodings to be sure it works
|
| |
|
|
|
|
| |
extra \r on the end of a line; fixed by stripping off trailing whitespace.
|
| |
|
|
|
|
|
| |
On more modern linuxes (and probably others) straight 'en_US' isn't a
valid locale. Make the code try a couple of alternates.
|
|
|
|
|
|
| |
the first
component of the path.
|
| |
|
| |
|
|
|
|
| |
add a test case
|
|
|
|
| |
Backport of fix for bug #1192777.
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the data read from the bytestream in readline() ends in a '\r' read one more
byte, even if the user has passed a size parameter. This extra byte shouldn't
cause a buffer overflow in the tokenizer. The original plan was to return a line
ending in '\r', which might be recognizable as a complete line and skip any '\n'
that was read afterwards. Unfortunately this didn't work, as the tokenizer only
recognizes '\n' as line ends, which in turn lead to joined lines and
SyntaxErrors, so this special treatment of a split '\r\n' has been dropped. (It
can only happen with a temporarily exhausted bytestream now anyway.)
Fixes parts of SF bugs #1163244 and #1175396.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix for SF bug #1175396: readline() will now read one more character, if
the last character read is "\r" (and size is None, i.e. we're allowed to
call read() multiple times), so that we can return the correct line ending
(this additional character might be a "\n").
If the stream is temporarily exhausted, we might return the wrong line ending
(if the last character read is "\r" and the next one (after the byte stream
provides more data) is "\n", but at least the atcr member ensures that we
get the correct number of lines (i.e. this "\n" will not be treated as
another line ending).
|
|
|
|
|
| |
Fix testcase for 64bit BSD systems: long is 8 bytes for those systems
so there's no need to pad after off_t members. And a small typo fix.
|
|
|
|
|
|
|
|
|
|
|
| |
Fix for rather inaccurately titled bug
[ 1165306 ] Property access with decorator makes interpreter crash
Don't allow the creation of unbound methods with NULL im_class, because
attempting to call such crashes.
Backport candidate.
|
| |
|
|
|
|
|
| |
instead of raising a TypeError when interacting with other types.
Allows other classes to successfully implement __radd__ style methods.
|
| |
|
|
|
|
| |
Reset internal buffers when seek() is called. This fixes SF bug #1156259.
|
|
|
|
| |
the file system encoding.
|