Éric Araujo
3bb8be6d78
Branch merge
2011-10-19 21:32:39 +02:00
Senthil Kumaran
1a129c882c
urllib.request - syntax changes enhancing readability. By Éric Araujo
2011-10-20 02:50:13 +08:00
Senthil Kumaran
34d38dce11
urllib.request - syntax changes enhancing readability. By Éric Araujo
2011-10-20 02:48:01 +08:00
Senthil Kumaran
a41c942685
Doc improvements suggested by Éric Araujo for the new 'HEAD' Request feature.
2011-10-20 02:37:08 +08:00
Senthil Kumaran
c6b4ef105e
default - Fix closes Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
...
Patch by Petri Lehtinen and Josh Triplett.
2011-10-20 02:16:59 +08:00
Senthil Kumaran
202a3c422b
3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c
2011-10-20 02:15:36 +08:00
Senthil Kumaran
7e3062b320
default - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:52:41 +08:00
Senthil Kumaran
29fa9d4d68
3.2 - Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:46:00 +08:00
Senthil Kumaran
294c231aa5
default - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
...
semicolons. Patch by Ben Darnell and Petri Lehtinen.
2011-10-20 01:06:59 +08:00
Senthil Kumaran
1ef0c0349e
3.2 - Fix closes Issue12529 - cgi.parse_header failure on double quotes and
...
semicolons. Patch by Ben Darnell and Petri Lehtinen.
2011-10-20 01:05:44 +08:00
Florent Xicluna
95483b6a19
Fix warning while building documentation.
2011-10-19 11:44:51 +02:00
Ezio Melotti
f10644983e
Merge with 3.2.
2011-10-19 11:06:26 +03:00
Ezio Melotti
e130a52d8a
Remove duplication.
2011-10-19 10:58:56 +03:00
Éric Araujo
784cd4cc54
Make one function in packaging.metadata simpler
2011-10-19 08:50:49 +02:00
Éric Araujo
f3f283a1cb
Clean up some idioms in packaging tests.
...
- Use os.makedirs (I had forgotten about it!)
- Let TempdirManager.write_file call os.path.join for us
- Remove custom command added by test_dist
- Use a skip instead of hiding a method with an underscore
- Address pyflakes warnings
2011-10-19 08:49:20 +02:00
Éric Araujo
79d9c42b04
Add reST targets to sections of the setup.cfg spec, improve wording
2011-10-19 08:41:07 +02:00
Éric Araujo
382067b3cf
Change signature of packaging.tests.support.LoggingCatcher.get_logs.
...
I need this for some tests, and it makes code clearer. This commit also
changes some assertEqual calls to use (actual, expected) order and fix
some pyflakes warnings.
2011-10-19 08:37:22 +02:00
Éric Araujo
4b5a5f7bd5
More fixes for PEP 3147 compliance in packaging ( #11254 )
2011-10-19 08:18:05 +02:00
Éric Araujo
8ccd18fff3
Expand tests and fix bugs in packaging.util.resolve_name.
...
The code is still ugly, but at least it works better now. Patches to
make it easier to read are welcome, as well as support in #12915 .
2011-10-19 06:46:13 +02:00
Éric Araujo
4f996449bf
Fix typo
2011-10-19 06:02:24 +02:00
Éric Araujo
5e2d5df477
Improve Victor’s commit with cool new 2.5 idiom
2011-10-19 06:01:57 +02:00
Łukasz Langa
318909b297
A ricochet from fixing #10680 : http://http://example.com/ no longer reports
...
'nonnumeric port'. It parses to a host name of "http:" which is equivalent to
http:80.
2011-10-19 02:40:48 +02:00
Łukasz Langa
6c4e1aed4b
Merged fix for #10860 from 3.2
2011-10-19 02:04:46 +02:00
Victor Stinner
55c7e00fc0
Simplify _PyUnicode_COMPACT_DATA() macro
2011-10-18 23:32:53 +02:00
Victor Stinner
6707293e75
Add consistency check to _PyUnicode_New()
2011-10-18 22:10:14 +02:00
Victor Stinner
9e92188f53
Issue #12281 : Fix test_codecs.test_cp932() on Windows XP
...
Cool! Decoding b'\x81\x00abc' from cp932 with replace error handler is now
giving the same result on all Windows versions.
2011-10-18 21:55:25 +02:00
Victor Stinner
62be4fb21f
Issue #12281 : Skip code page tests on non-Windows platforms
2011-10-18 21:46:37 +02:00
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
Łukasz Langa
a5a9a9c369
Fixes #10860 : Handle empty port after port delimiter in httplib
2011-10-18 21:17:39 +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
Ezio Melotti
bb8606dae3
#12277 : merge with 3.2.
2011-10-18 13:00:36 +03:00
Ezio Melotti
67494f2224
#12277 : add missing comma.
2011-10-18 12:59:39 +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
Nadeem Vawda
2b9f36cdb6
Merge #13194 : zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
2011-10-17 19:40:47 +02:00
Nadeem Vawda
bcb86c5246
Issue #13194 : zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
2011-10-17 19:34:22 +02:00
Antoine Pitrou
707033a694
Issue #13146 : Writing a pyc file is now atomic under POSIX.
2011-10-17 19:28:44 +02:00
Antoine Pitrou
5b9f4c1539
Fix typo
2011-10-17 19:21:04 +02:00
Benjamin Peterson
897d059221
merge 3.2 ( #13199 )
2011-10-17 13:10:24 -04:00
Benjamin Peterson
2963fe0711
plug possible refleak ( closes #13199 )
2011-10-17 13:09:27 -04: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
bf65c746ed
(null merge 3.2, fix already applied to default)
2011-10-16 23:46:06 +02:00