Commit graph

51923 commits

Author SHA1 Message Date
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
Victor Stinner
8d91d454d5 Issue #10653: Fix time.strftime() on Windows, check for invalid format strings 2011-10-16 23:45:39 +02: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
Victor Stinner
5a3ff79fd6 Issue #10653: Fix time.strftime() on Windows, check for invalid format strings 2011-10-16 19:08:23 +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
Antoine Pitrou
e60698317d Fix build under Windows 2011-10-15 16:38:20 +02:00
Benjamin Peterson
7a6debe79c remove some duplication 2011-10-15 09:25:28 -04:00
Éric Araujo
ab7e2a4454 Merge 3.2 2011-10-14 17:38:10 +02:00