| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
classes was called with three arguments. This makes no sense, there's
no way to pass in the "modulo" 3rd argument as for __pow__, and
classic classes don't do this. [SF bug 620179]
I don't want to backport this to 2.2.2, because it could break
existing code that has developed a work-around. Code in 2.2.2 that
wants to use __ipow__ and wants to be forward compatible with 2.3
should be written like this:
def __ipow__(self, exponent, modulo=None):
...
|
| |
|
| |
|
|
|
|
| |
Will add test and backport.
|
|
|
|
|
|
|
| |
Ben. If s is a byte string, make sure it can be converted to unicode
with the input codec, and from unicode with the output codec, or raise
a UnicodeError exception early. Skip this test (and the unicode->byte
string conversion) when the charset is our faux 8bit raw charset.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
must be a Charset instance, not a string. The bug here was that
self._charset wasn't being converted to a Charset instance so later
.append() calls which used the default charset would break.
_split(): If the charset of the chunk is '8bit', return the chunk
unchanged. We can't safely split it, so this is the avenue of least
harm.
|
|
|
|
|
|
|
|
|
| |
8-bit data, we cannot split it safely, so return the original string
unchanged.
_is8bitstring(): Helper function which returns True when we have a
byte string that contains non-ascii characters (i.e. mysterious 8-bit
data).
|
|
|
|
| |
which we know nothing else.
|
|
|
|
| |
SF bug 585882. Will forward-port.
|
|
|
|
| |
(rev. 1.4 of distutils/fancy_getopt.py).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Also, it fixes a really egregious error in Header.encode() (really
in Header._encode_chunks()) that could cause a header to grow and
grow each time encode() was called if output_codec was different
from input_codec.
Also, fix a typo.
|
|
|
|
| |
Korean, and Chinese codecs.
|
|
|
|
|
|
|
| |
Fix Konqueror so it can start when calling open().
The assert needed to be on the raw URL, not openURL 'url...'
Will backport.
|
| |
|
|
|
|
|
| |
If the request object has a header, it should override the default
header provided by the OpenerDirector.
|
|
|
|
| |
getrefcount(), maxunicode, and version_info.
|
| |
|
| |
|
|
|
|
| |
Bug fix candidate.
|
| |
|
|
|
|
|
| |
Only runs when sys.maxint == 2**32 - 1; different things go wrong
on a 64-bit box.
|
| |
|
| |
|
| |
|
|
|
|
| |
default get_body_encoding() cannot be SHORTEST.
|
|
|
|
| |
sensitive. Coerce the argument to lower case.
|
|
|
|
|
| |
Coerce the argument to lower case. Also, since body encodings can't
be SHORTEST, default the CHARSETS failobj's second item to BASE64.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
refactor a bit and clean up.
M PyShell.py Cosmetic changes, delete blank lines, add # on some
blank lines.
M rpc.py Add more debugging capability
M run.py Add support for getting calltip from subprocess
Move import statements
|
|
|
|
| |
Make the regex case insensitive for some web sites which use Realm.
|
|
|
|
|
| |
the flag. Punt and return a -L flag instead (returning "" gums up the
command to be forked).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
initializing GNU readline, setlocale(LC_CTYPE, "") is called, which
changes the <ctype.h> macros to use the "default" locale (which isn't
the *initial* locale -- the initial locale is the "C" locale in which
only ASCII characters are printable). When the default locale is e.g.
Latin-1, the repr() of string objects can include 8-bit characters
with the high bit set; I believe this is due to the recent
PRINT_MULTIBYTE_STRING changes to stringobject.c. This in turn screws
up test_pyexpat and test_rotor, which depend on the repr() of 8-bit
strings with high bit characters.
The solution (for now) is to force the LC_CTYPE locale to "C" after
importing rlcompleter. This is the locale required by the test suite
anyway.
|
| |
|
|
|
|
|
|
| |
imported on systems other than Windows, and in particular is imported
by test___all__; the compile farm reported that all Linux tests failed
due to this; isn't anyone in PythonDevLand running CVS on Linux?!).
|
|
|
|
|
|
| |
ths "should be" skipped depends on os.path.supports_unicode_filenames,
not really on the platform. Fiddled the expected-skip constructor
appropriately.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
list(xrange(sys.maxint / 4))
test. Changed 4 to 2.
The belief is that this test intended to trigger a bit of code in
listobject.c's NRESIZE macro that's looking for arithmetic overflow. As
written, it doesn't achieve that, though, and leaves it up to the platform
realloc() as to whether it wants to allocate 2 gigabytes. Some platforms
say "sure!", although they don't appear to mean it, and disaster ensues.
Changing 4 to 2 (just barely) manages to trigger the arithmetic overflow
test instead, leaving the platform realloc() out of it.
I'll backport this to the 2.2 branch next.
|
|
|
|
|
|
| |
sys.getwindowsversion() on Windows (new enahanced Tim-proof <wink>
version), and fix test_pep277.py in a few minor ways.
Including doc and NEWS entries.
|
|
|
|
|
|
| |
the change in revision 1.11 (test_email.py) in response to SF bug
#609988. We now think that was the wrong fix and that WinZip was the
real culprit there.
|
|
|
|
|
|
|
| |
get_type(). Also, one of the regular expressions is constant so might
as well make it a module global. And, when splitting up digests,
handle lineseps that are longer than 1 character in length
(e.g. \r\n).
|
| |
|
|
|
|
| |
with the standalone mimelib package.
|
| |
|
| |
|
|
|
|
|
| |
be skipped everywhere except on Windows NT and descendants, but I'm
only going to add it to the skip list for the platform I can test.)
|