Victor Stinner
3a50e7056e
Issue #12281 : Rewrite the MBCS codec to handle correctly replace and ignore
...
error handlers on all Windows versions. The MBCS codec is now supporting all
error handlers, instead of only replace to encode and ignore to decode.
2011-10-18 21:21:00 +02:00
Antoine Pitrou
1e73a2467f
Issue #13150 : sysconfig no longer parses the Makefile and config.h files
...
when imported, instead doing it at build time. This makes importing
sysconfig faster and reduces Python startup time by 20%.
2011-10-18 17:52:24 +02:00
Antoine Pitrou
cf28eacafe
Issue #13188 : When called without an explicit traceback argument,
...
generator.throw() now gets the traceback from the passed exception's
``__traceback__`` attribute. Patch by Petri Lehtinen.
2011-10-18 16:42:55 +02:00
Antoine Pitrou
551ba20e8e
Issue #13188 : When called without an explicit traceback argument,
...
generator.throw() now gets the traceback from the passed exception's
`__traceback__` attribute. Patch by Petri Lehtinen.
2011-10-18 16:40:50 +02:00
Ezio Melotti
3de134b1d1
#12448 : merge with 3.2.
2011-10-18 13:26:49 +03:00
Ezio Melotti
6bfecd1271
#12448 : smtplib now flushes stdout while running `python -m smtplib
`
...
in order to display the prompt correctly. Patch by Petri Lehtinen.
2011-10-18 13:20:07 +03:00
Victor Stinner
5c267e2d22
Close #12454 : The mailbox module is now using ASCII, instead of the locale
...
encoding, to read and write MH mailboxes (.mh_sequences files).
2011-10-17 20:44:22 +02:00
Victor Stinner
9ea8e4c29d
Instantiate the OS-related exception as soon as we raise it, so that "except"
...
works properly.
PyErr_SetFromErrnoWithFilenameObject() was already fixed by the changeset
793c75177d28. This commit fixes PyErr_SetExcFromWindowsErrWithFilenameObject(),
used on Windows.
2011-10-17 20:18:58 +02:00
Victor Stinner
ecd0207444
Issue #12367 : Test test_select.test_errno() on FreeBSD
...
See the FreeBSD bug:
http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/155606
2011-10-17 19:55:31 +02:00
Antoine Pitrou
707033a694
Issue #13146 : Writing a pyc file is now atomic under POSIX.
2011-10-17 19:28:44 +02:00
Mark Hammond
f813080736
normalize whitespace in Lib/distutils/msvc9compiler.py
2011-10-17 11:36:49 +11:00
Mark Hammond
53e4a9a763
normalize whitespace in Lib/distutils/msvc9compiler.py
2011-10-17 11:35:31 +11:00
Mark Hammond
a9efb6fdd8
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:28:09 +11:00
Mark Hammond
6c58b28f2f
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:05:57 +11:00
Victor Stinner
f12e5068c3
Close #13174 : Fix extended attributes tests in test_os for SELinux
...
On Fedora, new files get the 'security.selinux' attribute.
2011-10-16 22:12:03 +02:00
Victor Stinner
386c2d8b4e
test_select: use a timeout=0 in test_errno()
2011-10-16 20:48:52 +02:00
Senthil Kumaran
de49d64dbc
Fix closes issue 1673007 urllib.request to support HEAD requests with a new method arg.
2011-10-16 23:54:44 +08:00
Raymond Hettinger
d8886fc831
Merge
2011-10-16 00:00:51 -07:00
Raymond Hettinger
4b779b3785
Issue 13177: Make tracebacks more readable by avoiding chained exceptions in the lru_cache.
2011-10-15 23:50:42 -07:00
Éric Araujo
8022314fc2
Cleanup in packaging: super considered super
2011-10-14 17:04:39 +02:00
Éric Araujo
d139b99426
Fix writing of the RESOURCES file by packaging ( #12386 )
2011-10-14 16:58:23 +02:00
Éric Araujo
77466be08a
Branch merge
2011-10-14 16:56:02 +02:00
Éric Araujo
181ae4baa1
Branch merge
2011-10-14 16:50:09 +02:00
Lars Gustäbel
ac3d137a30
Issue #13158 : Fix decoding and encoding of base-256 number fields in tarfile.
...
The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.
2011-10-14 12:46:40 +02:00
Lars Gustäbel
01277d166a
Merge with 3.2: Issue #13158 : Fix decoding and encoding of base-256 number fields in tarfile.
...
The nti() function that converts a number field from a tar header to a number
failed to decode GNU tar specific base-256 fields. I also added support for
decoding and encoding negative base-256 number fields.
2011-10-14 12:53:10 +02:00
Victor Stinner
0e7e715a11
(Merge 3.2) Issue #13025 : mimetypes is now reading MIME types using the UTF-8
...
encoding, instead of the locale encoding.
2011-10-14 03:05:10 +02:00
Victor Stinner
82ac9bcdb3
Issue #13025 : mimetypes is now reading MIME types using the UTF-8 encoding,
...
instead of the locale encoding.
2011-10-14 03:03:35 +02:00
Victor Stinner
21d29c377b
Issue #12367 : Add a test on error attribute of select.error
...
Thanks to the PEP 3151, select.error (which is just an alias to OSError) has
now an error attribute.
2011-10-12 21:01:46 +02:00
Antoine Pitrou
5d6fbe8207
Instantiate the OS-related exception as soon as we raise it, so that
...
"except" works properly.
2011-10-12 19:39:57 +02:00
Antoine Pitrou
6b4883dec0
PEP 3151 / issue #12555 : reworking the OS and IO exception hierarchy.
2011-10-12 02:54:14 +02:00
Antoine Pitrou
ffa547e139
Fix deprecation warning
2011-10-11 22:43:37 +02:00
Antoine Pitrou
2c3b2302ad
Issue #13134 : optimize finding single-character strings using memchr
2011-10-11 20:29:21 +02:00
Antoine Pitrou
bb0ad4cfa1
Avoid pulling threading when _thread is sufficient
2011-10-11 18:51:53 +02:00
Antoine Pitrou
dc567e42f7
Use a dict for faster sysconfig startup (issue #13150 )
2011-10-11 16:07:30 +02:00
Antoine Pitrou
10a99b024d
Issue #13150 : The tokenize module doesn't compile large regular expressions at startup anymore.
...
Instead, the re module's standard caching does its work.
2011-10-11 15:45:56 +02:00
Éric Araujo
aa2cb3a530
Increase test coverage for packaging.manifest ( #11751 ).
...
Patch by Justin Love.
2011-10-11 03:06:16 +02:00
Éric Araujo
c822f08c71
Merge #11751 from 3.2
2011-10-11 02:46:59 +02:00
Éric Araujo
2336c8553c
Increase test coverage for distutils.filelist ( #11751 ).
...
Patch by Justin Love.
2011-10-11 02:45:51 +02:00
Éric Araujo
30cc65460e
Add tests for Unicode handling in packaging’ check and register ( #13114 )
2011-10-11 02:18:12 +02:00
Antoine Pitrou
86fe86055b
Fix the threading infrastructure in test_socket to support skipping
...
tests from the setUp() routine.
This fixes a refleak in test_socket on some machines.
2011-10-10 20:15:59 +02:00
Éric Araujo
67df285a33
Merge 3.2
2011-10-09 08:58:16 +02:00
Éric Araujo
9255464dfb
Branch merge
2011-10-09 08:55:04 +02:00
Éric Araujo
a5bc34fa00
Branch merge
2011-10-09 07:32:35 +02:00
Éric Araujo
5819dcc0d2
Add tests for Unicode handling in distutils’ check and register ( #13114 )
2011-10-09 07:25:33 +02:00
Antoine Pitrou
798b4df812
test_unicode was forgetting to run the common string tests for str.find()
2011-10-08 22:42:00 +02:00
Antoine Pitrou
c0bbe7d38a
test_unicode was forgetting to run the common string tests for str.find()
2011-10-08 22:41:35 +02:00
Éric Araujo
a29e4f64c1
Fix packaging byte-compilation to comply with PEP 3147 ( #11254 ).
...
I want to replace custom byte-compiling function with calls to
compileall before 3.3b1, but in the short term it’s good to have this
fixed.
Adapted from the distutils patch by Jeff Ramnani. I tested with -B, -O
and -OO; test_util and test_mixin2to3 fail in -O mode because lib2to3
doesn’t support it.
2011-10-08 04:09:15 +02:00
Éric Araujo
04ea9533c1
Fix docstring of distutils.util.byte_compile (followup for #11254 )
2011-10-08 03:02:37 +02:00
Éric Araujo
73b1e7dd20
Make C code in one packaging test comply with ISO C ( #10359 ).
...
Patch by Hallvard B Furuseth.
2011-10-08 02:58:50 +02:00
Éric Araujo
6ebea15e0b
Merge fixes for #10526 , #10359 , #11254 , #9100 and the bug without number
2011-10-08 02:57:45 +02:00