Commit graph

43198 commits

Author SHA1 Message Date
Antoine Pitrou
5136ac0ca2 Issue #13645: pyc files now contain the size of the corresponding source
code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
2012-01-13 18:52:16 +01:00
Nick Coghlan
1f7ce62bd6 Implement PEP 380 - 'yield from' (closes #11682) 2012-01-13 21:43:40 +10:00
Antoine Pitrou
3a5d4cb940 Issue #13748: Raw bytes literals can now be written with the rb prefix as well as br. 2012-01-12 22:46:19 +01:00
Antoine Pitrou
b63a450cc4 test_strlit was never run 2012-01-12 22:38:13 +01:00
Benjamin Peterson
b2bf01d824 use full unicode mappings for upper/lower/title case (#12736)
Also broaden the category of characters that count as lowercase/uppercase.
2012-01-11 18:17:06 -05:00
Antoine Pitrou
9007f72db0 Remove unused certificate from the test directory. 2012-01-10 23:46:26 +01:00
Charles-François Natali
76961faaa0 Issue #13757: Change os.fdlistdir() so that it duplicates the passed file
descriptor (instead of closing it).
2012-01-10 20:25:09 +01:00
Terry Jan Reedy
8d172343ad Merge with 3.2 2012-01-09 18:33:27 -05:00
Charles-François Natali
dc3044c704 Issue #12760: Add a create mode to open(). Patch by David Townshend. 2012-01-09 22:40:02 +01:00
Raymond Hettinger
7b7caa8ec6 Fix nasty typo 2012-01-09 20:02:24 +00:00
Giampaolo Rodola'
8bc8585873 provide a common method to check for RETR_DATA validity, first checking the expected len and then the actual data content; this way we get a failure on len mismatch rather than content mismatch (which is very long and unreadable) 2012-01-09 17:10:10 +01:00
Raymond Hettinger
0c5e52f0bd Make the docstring style consistent. 2012-01-09 06:17:39 +00:00
Raymond Hettinger
61bd72924e Improve clarity with keyword argument for block. Move nowait methods together. 2012-01-09 06:02:08 +00:00
Raymond Hettinger
143f51ade5 Minor code clean-ups and beautifications. 2012-01-09 05:32:01 +00:00
Charles-François Natali
7546ad327d Issue #13739: In os.listdir(), rewind the directory stream (so that listdir()
can be called again on the same open file).
2012-01-08 18:34:06 +01:00
Ross Lagerwall
69f39a53f6 Merge with 3.2 for #12364. 2012-01-08 08:42:03 +02:00
Raymond Hettinger
7540427434 Simplify the code using with-statements. 2012-01-07 15:32:52 -08:00
Vinay Sajip
2c94cdde6d Closes #13732: now use os.linesep instead of a literal newline. 2012-01-07 23:26:17 +00:00
Charles-François Natali
61d28d6a74 Issue #13502: threading: Fix a race condition in Event.wait() that made it
return False when the event was set and cleared right after.
2012-01-07 18:26:39 +01:00
Antoine Pitrou
0a08d7a095 Issue #9993: When the source and destination are on different filesystems,
and the source is a symlink, shutil.move() now recreates a symlink on the
destination instead of copying the file contents.
Patch by Jonathan Niehof and Hynek Schlawack.
2012-01-06 20:16:19 +01:00
Lars Gustäbel
8f771a4716 Merge from 3.2: Issue #12926: Fix a bug in tarfile's link extraction.
On platforms that do not support (symbolic) links, tarfile offers a
work-around and extracts a link in an archive as the regular file the link is
pointing to. On other platforms, this code was accidentally executed even
after the link had been successfully extracted which failed due to the already
existing link.
2012-01-05 18:53:00 +01:00
Antoine Pitrou
f7e7818e24 Issue #13713: fix a regression in HTTP chunked reading after 806cfe39f729
(originally issue #13464: Add a readinto() method to http.client.HTTPResponse)
2012-01-04 18:57:22 +01:00
Benjamin Peterson
d710d147f6 convince regrtest.py we aren't modifying _CONFIG_VARS 2012-01-04 10:12:14 -06:00
Vinay Sajip
2549f87520 Closes #13699. Skipped two tests if Python is optimised. 2012-01-04 12:07:30 +00:00
Vinay Sajip
23b94d0b98 Refactored logging rotating handlers for improved flexibility. 2012-01-04 12:02:26 +00:00
Senthil Kumaran
239a0429fd merge from 3.2 2012-01-04 14:47:30 +08:00
Benjamin Peterson
c095956ca5 merge 3.2 2012-01-03 16:26:34 -06:00
Antoine Pitrou
72aeec35a1 Issue #13636: Weak ciphers are now disabled by default in the ssl module
(except when SSLv2 is explicitly asked for).
2012-01-03 22:49:08 +01:00
Eli Bendersky
74c503b40d use io.SEEK_* constants instead of os.SEEK_* where an IO stream is seeked, leaving the os.SEEK_* constants only for os.lseek, as documented 2012-01-03 06:26:13 +02:00
Antoine Pitrou
c041ab6c7d Mock the rename failure a bit better 2012-01-02 19:18:02 +01:00
Charles-François Natali
42663334cd Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch by
Vilmos Nebehaj.
2012-01-02 15:57:30 +01:00
Sandro Tosi
9912b395c3 merge with 3.2 2012-01-01 22:53:29 +01:00
Sandro Tosi
a56ee04536 Issue #13640: add application/vnd.apple.mpegurl MIME type; (partial) patch by Hiroaki Kawai 2012-01-01 18:34:29 +01:00
Sandro Tosi
35e0275e59 merge with 3.2 2012-01-01 18:05:06 +01:00
Antoine Pitrou
5e8767c764 Fix no-op tests in importlib. 2011-12-30 21:26:08 +01:00
Antoine Pitrou
78091e63d6 Issue #12715: Add an optional symlinks argument to shutil functions (copyfile, copymode, copystat, copy, copy2).
When that parameter is true, symlinks aren't dereferenced and the operation
instead acts on the symlink itself (or creates one, if relevant).

Patch by Hynek Schlawack.
2011-12-29 18:54:15 +01:00
Jason R. Coombs
bbb0803924 Limit test scope to those platforms that can save the target filenames. Reference #11638. 2011-12-28 10:45:08 -05:00
Benjamin Peterson
70069fcd4b don't fail if CLOEXEC doesn't exist 2011-12-27 16:52:20 -06:00
Benjamin Peterson
a5f6f2aba3 merge 3.2 2011-12-27 15:17:15 -06:00
Benjamin Peterson
2fb9ae9dfc add a flags parameter to select.epoll 2011-12-27 15:15:41 -06:00
Jason R. Coombs
e7437a7cb3 Ported some test cases from 2.7 for #11638 2011-12-26 12:17:01 -05:00
Charles-François Natali
78c1b42fde Issue #13565: Increase multiprocessing's server socket backlog, to avoid
dropped connections in case of simultaneous connection requests.
2011-12-23 19:07:58 +01:00
Antoine Pitrou
5b62942074 Issue #13577: Built-in methods and functions now have a __qualname__.
Patch by sbt.
2011-12-23 12:40:16 +01:00
Senthil Kumaran
d22983d081 merge from 3.2. Minor code style improvements in http.server suggested in Issue13294. 2011-12-23 17:04:23 +08:00
Antoine Pitrou
5285518fe0 Forgot the data file for Diffie-Hellman tests. 2011-12-22 10:05:50 +01:00
Antoine Pitrou
0e576f1f50 Issue #13626: Add support for SSL Diffie-Hellman key exchange, through the
SSLContext.load_dh_params() method and the ssl.OP_SINGLE_DH_USE option.
2011-12-22 10:03:38 +01:00
Michael Foord
85530aa1c3 Merge 2011-12-22 01:15:53 +00:00
Antoine Pitrou
6b15c90fd8 Use context managers in test_ssl to simplify test writing. 2011-12-21 16:54:45 +01:00
Antoine Pitrou
f0a49a9e27 Issue #13645: fix test_import failure when run immediately after test_coding. 2011-12-21 15:53:16 +01:00
Senthil Kumaran
ea6b4187cf Issue 13620 - Support chrome browser in webbrowser.py module. 2011-12-21 22:20:32 +08:00