Armin Rigo
f879024487
test and fix for buggy handling of exceptions raised by C functions,
...
causing the profiler to crash on an AssertionError if the same Python
function catches multiple exceptions from C functions.
2005-09-20 18:50:13 +00:00
Matthias Klose
f3f231f60c
- Patch #1166948 : locale.py: Prefer LC_ALL, LC_CTYPE and LANG over LANGUAGE
...
to get the correct encoding.
- Patch #1166938 : locale.py: Parse LANGUAGE as a colon separated list of
languages.
2005-09-20 07:02:49 +00:00
Armin Rigo
3a703b6059
Reverted revision 1.83, which introduced a bug and subtle incompatibility
...
issues. See bug #1112856 .
2005-09-19 09:11:04 +00:00
Skip Montanaro
f8948ca5d7
skip _locale test if OS X < 10.4
2005-09-19 03:54:46 +00:00
Martin v. Löwis
4ed673877d
Patch #1268314 : Cache lines in StreamReader.readlines for performance.
...
Will backport to Python 2.4.
2005-09-18 08:34:39 +00:00
Georg Brandl
9e28107ce8
Test case for latest complexobject fix.
2005-09-17 07:51:15 +00:00
Vinay Sajip
116f16e4ab
Added lock acquisition around handler removal from logger
2005-09-16 10:33:40 +00:00
Raymond Hettinger
9bda1d6f64
No longer ignore exceptions raised by comparisons during key lookup.
...
Inspired by Armin Rigo's suggestion to do the same with dictionaries.
2005-09-16 07:14:21 +00:00
Brett Cannon
a783d06f8c
Clear out the regex cache when the TimeRE cache is invalidated by a locale
...
change.
Fixes bug #1290505 .
2005-09-15 02:34:56 +00:00
Guido van Rossum
8ee3e5aa93
- Changes donated by Elemental Security to make it work on AIX 5.3
...
with IBM's 64-bit compiler (SF patch #1284289 ). This also closes SF
bug #105470 : test_pwd fails on 64bit system (Opteron).
2005-09-14 18:09:42 +00:00
Gustavo Niemeyer
6fa0c5a452
Bug #1202493 : Fixing SRE parser to handle '{}' as perl does, rather than
...
considering it exactly like a '*'.
2005-09-14 08:54:39 +00:00
Raymond Hettinger
ebb7f30111
Speed-up escape()
2005-09-12 22:50:37 +00:00
Raymond Hettinger
a1d09e2ded
Minor cleanup.
2005-09-11 16:34:05 +00:00
Raymond Hettinger
cf6b6326e5
Corrected version of 1.170
2005-09-10 18:17:54 +00:00
Raymond Hettinger
2bdec7bfb0
Revert 1.170. Add tests.
2005-09-10 14:30:09 +00:00
Raymond Hettinger
803ce801ab
Simplify and speed-up unquote().
2005-09-10 06:49:04 +00:00
Raymond Hettinger
957b126649
Simplify and speed-up quote_plus().
2005-09-10 02:27:41 +00:00
Raymond Hettinger
199d2f7997
SF #1285086 : urllib.quote is too slow
...
Simplify and speed-up quote() function.
2005-09-09 22:27:13 +00:00
Vinay Sajip
0ee9ba258e
Added _handlerList to allow shutdown to flush and close handlers in reverse order of creation (see SF# 1282539)
2005-09-08 18:14:16 +00:00
Hye-Shik Chang
e029da0aca
Quote docstring with r"" to keep '\r\n' in example code.
2005-09-07 07:40:05 +00:00
Vinay Sajip
c384fc2357
Changed _srcfile determination to support py2exe.
2005-09-02 11:20:33 +00:00
Walter Dörwald
c5238b8288
SF bug #1235646 : codecs.StreamRecoder.next() now reencodes the data it reads
...
from the input stream, so that the output is a byte string in the correct
encoding instead of a unicode string.
2005-09-01 11:56:53 +00:00
Georg Brandl
cd3c26a717
Reverting previous checkin. This breaks too much of HTMLParser to be applied
...
without thought. Anyway, such malformed HTML is better handled by something
like BeautifulSoup.
2005-09-01 06:25:34 +00:00
Neal Norwitz
4ce69a5b06
No need to import exceptions, they are builtins
2005-09-01 00:45:28 +00:00
Neal Norwitz
6203196c7c
Remove unused import
2005-09-01 00:39:02 +00:00
Georg Brandl
a1be88e24d
patch [ 1242454 ] shutil.copytree() quits too soon after an error.
2005-08-31 22:48:45 +00:00
Georg Brandl
7847405a76
bug [ 761452 ] HTMLParser chokes on my.yahoo.com output
2005-08-31 22:08:45 +00:00
Piers Lauder
be5615ef99
updated __version__
2005-08-31 10:50:03 +00:00
Piers Lauder
14f39402af
changed select() so readonly flag is treated as a boolean
2005-08-31 10:46:29 +00:00
Walter Dörwald
a47d1c08d0
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 Nik Haldimann's patch that detects truncated data)
2005-08-30 10:23:14 +00:00
Brett Cannon
f1b2ba6aa1
Fix logic error introduced in last commit. Also add a comment to explain what
...
the code is doing.
2005-08-29 18:25:55 +00:00
Brett Cannon
6e372d1422
fix bug where str.find() was being misused where __contains__ should have been
...
used.
2005-08-27 19:25:59 +00:00
Martin v. Löwis
5dbdc59577
Patch #1168594 : set sizes of non-regular files to zero. Fixes #1167128 .
...
Will backport to 2.4.
2005-08-27 10:07:56 +00:00
Tim Peters
9e34c04732
Whitespace normalization (via reindent.py).
2005-08-26 15:20:46 +00:00
Tim Peters
e8889c5741
testSeekBackwardsFromEnd(): Repair obvious syntax error.
2005-08-26 14:33:57 +00:00
Georg Brandl
d603c04bcd
Add list() around xreadlines()
2005-08-26 13:23:54 +00:00
Georg Brandl
62fe585b4b
*** empty log message ***
2005-08-26 13:21:50 +00:00
Georg Brandl
5a650a253c
patch [ 810023 ] Fix for off-by-one bug in urllib.URLopener.retrieve
2005-08-26 08:51:34 +00:00
Georg Brandl
d2e3ba7a35
patch [ 756021 ] Allow socket.inet_aton("255.255.255.255") on Windows
2005-08-26 08:34:00 +00:00
Georg Brandl
905a01aba4
bug [ 1262320 ] minidom.py alternate newl support is broken
2005-08-25 22:14:15 +00:00
Georg Brandl
175a7dcf65
bug [ 1262320 ] minidom.py alternate newl support is broken
2005-08-25 22:02:43 +00:00
Martin v. Löwis
8b59514e57
Make IDNA return an empty string when the input is empty. Fixes #1163178 .
...
Will backport to 2.4.
2005-08-25 11:03:38 +00:00
Georg Brandl
8246c439a8
Correct test suite for #848017 .
2005-08-25 07:32:42 +00:00
Georg Brandl
532efabf1d
patch #848017 : make Cookie more RFC-compliant.
2005-08-24 22:34:21 +00:00
Georg Brandl
e1b13d2019
Bug #735248 : Fix urllib2.parse_http_list.
2005-08-24 22:20:32 +00:00
Georg Brandl
a5a2088dd7
Bug 1016563: Bug in urllib2 proxy auth
2005-08-24 20:29:32 +00:00
Georg Brandl
b925602f16
Patch [ 1062060 ] fix for 1016880 urllib.urlretrieve silently truncates dwnld
2005-08-24 18:46:39 +00:00
Martin v. Löwis
0a5d4a20e7
Patch #1167716 : Support Unicode filenames in mkpath. Fixes #1121494 .
...
Will backport to 2.4.
2005-08-24 14:55:22 +00:00
Georg Brandl
be3856dcd4
patch [ 1141428 ] more __contains__ tests
2005-08-24 09:08:57 +00:00
Georg Brandl
52715f69e7
[ 1113421 ] New tutorial tests in test_generators.py
2005-08-24 09:02:29 +00:00