Commit Graph

65252 Commits

Author SHA1 Message Date
Antoine Pitrou c2ec992698 Issue #15247: FileIO now raises an error when given a file descriptor pointing to a directory. 2012-07-06 18:48:24 +02:00
Senthil Kumaran 3b30b19e0a Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp 2012-07-04 19:50:29 -07:00
Jesus Cea d0f5f4827d Issue #1677: Unused variable warning in Non-Windows 2012-07-03 13:07:58 +02:00
Jesus Cea 99ad1f1354 Backed out changeset 7ccc2cea6969 2012-07-03 13:06:45 +02:00
Jesus Cea 263afe2fed Issue #1667: Unused variable warning in Non-Windows 2012-07-03 13:04:55 +02:00
Éric Araujo e5567ccc86 Create ~/.pypirc securely (#13512).
There was a window between the write and the chmod where the user’s
password would be exposed, depending on default permissions.  Philip
Jenvey’s patch fixes it.
2012-07-03 01:23:46 -04:00
Éric Araujo 9e06e37be0 Branch merge 2012-07-03 01:13:40 -04:00
Éric Araujo 3cf202e957 Ignore .nfs* files in distutils (#7719).
These files are created by some NFS clients a file is edited and removed
concurrently (see added link in doc for more info).  If such a file is
removed between distutils calls listdir and copy, it will get confused.
Other special files are ignored in sdist (namely VCS directories), but
this has to be filtered out earlier.
2012-07-03 01:12:42 -04:00
Raymond Hettinger e16c882584 Make it easier to search for the grouper() recipe. 2012-07-02 21:08:45 -07:00
Éric Araujo 96534689a8 Use source role to get links to files 2012-07-02 17:46:56 -04:00
Éric Araujo 06176a89ff Adapt mentions of future changes in doc 2012-07-02 17:46:40 -04:00
Éric Araujo 0d983b5339 Avoid SyntaxError in script using print function 2012-07-02 17:45:10 -04:00
Raymond Hettinger 2aa8519f07 The StopIteration API applies to both tokenize() and generate_tokens() 2012-07-01 20:00:09 -07:00
Antoine Pitrou e970dc757c Issue #15212: fix typo in compiler module (rename SC_GLOBAL_EXPLICT to SC_GLOBAL_EXPLICIT).
Patch by Arfrever.
2012-07-02 00:01:22 +02:00
Georg Brandl e683ef55fc Make call of os.getppid() conditional: it is not available on Windows. 2012-07-01 09:47:54 +02:00
Georg Brandl 1014686d76 Remove an unneeded footnote. 2012-07-01 09:40:16 +02:00
Stefan Krah a14a06fe0e Issue #15170: Quote the variable that expands to the current directory. 2012-06-30 18:46:02 +02:00
Mark Dickinson e0afb72402 Closes #14591: Random.jumpahead could produce an invalid MT state on 64-bit machines. 2012-06-30 17:19:35 +01:00
Tim Golden 9848d812a3 Merged 2012-06-29 22:10:28 +01:00
Antoine Pitrou 96f2053b13 Backed out changeset ee51e3aef302 - it broke the test suite 2012-06-29 21:53:29 +02:00
Senthil Kumaran 97ac4a292e urlparse cleanup. rename keywords used as variables 2012-06-29 11:07:27 -07:00
Tim Golden 4702336a0d Issue #1677: Handle better a race condition between the interactive interpreter and
the Ctrl-C signal handler on Windows
2012-06-29 18:20:44 +01:00
Petri Lehtinen d07de40490 #5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on flush() 2012-06-29 15:09:16 +03:00
Petri Lehtinen 4e6e5a06bb #9559: Don't call _pre_mailbox_hook more than once 2012-06-29 13:43:45 +03:00
Senthil Kumaran 9d5d507322 urlparse docs clean up 2012-06-28 21:07:32 -07:00
Antoine Pitrou d9a5137742 Issue #5067: improve some json error messages.
Patch by Serhiy Storchaka.
2012-06-29 01:58:26 +02:00
Amaury Forgeot d'Arc d958cc960f Issue #15219: Fix a reference leak when hashlib.new() is called with
invalid parameters.
2012-06-29 01:42:46 +02:00
Petri Lehtinen 45f0d9835c #9559: Append data to single-file mailbox files if messages are only added
If messages were only added, a new file is no longer created and
renamed over the old file when flush() is called on an mbox, MMDF or
Babyl mailbox.
2012-06-28 13:49:37 +03:00
Antoine Pitrou 8c368efa55 Regrtest option "-n" doesn't exist in 2.7. 2012-06-27 18:23:40 +02:00
Antoine Pitrou cf807c04a3 Flush stdout and stderr when running tests in parallel
(helps getting results in real-time when stdio is transmitted over a pipe or socket)
2012-06-27 17:41:07 +02:00
Antoine Pitrou 3a121561b7 Allow passing extra testing options to the buildbot test scripts 2012-06-27 17:27:21 +02:00
Senthil Kumaran 189bd91255 issue13666 - Fixing datetime documentation example when using tzinfo 2012-06-26 20:05:12 +08:00
Gregory P. Smith b2ac4d693a Fixes issue #12268 for file readline, readlines and read() and readinto methods.
They no longer lose data when an underlying read system call is interrupted.
IOError is no longer raised due to a read system call returning EINTR from
within these methods.
2012-06-25 20:57:36 -07:00
Antoine Pitrou ed04f42b99 Try to fix failure of a Windows buildbot to capture name resolution errors. 2012-06-26 00:48:59 +02:00
Vinay Sajip c14bae47b8 Issue #15179: Closed socket on connection failure. Thanks to Kazutaka Morita for the patch. 2012-06-25 23:17:07 +01:00
Stefan Krah ea1eda2a29 Issue #15170: Try the HOST_PYTHON hack for 2.7. 2012-06-25 15:20:51 +02:00
Charles-François Natali 65dd745fec Remove useless test (flowinfo is unsigned). 2012-06-23 10:06:56 +02:00
Alexander Belopolsky 83ae8beb08 Fixed the name of the 'email.Utils' module in tests. 2012-06-22 10:38:48 -04:00
Alexander Belopolsky e99d3a160c Issue #14653: email.utils.mktime_tz() no longer relies on system
mktime() when timezone offest is supplied.
2012-06-21 20:57:39 -04:00
Hynek Schlawack 9bd4bf2a3d #10053: Don't close FDs when FileIO.__init__ fails
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 19:45:19 +02:00
Richard Oudkerk 4215d2738a Issue #15101: Make pool finalizer avoid joining current thread 2012-06-18 15:37:31 +01:00
Petri Lehtinen 48ee6908bc Fix NEWS entry for #15036 2012-06-18 10:42:08 +03:00
Ezio Melotti f637920652 #14840: Add a bit on the difference between tuples and lists. Initial patch by Zachary Ware. 2012-06-17 14:10:59 +02:00
Nick Coghlan a093312871 Issue #15043: skip test_gdb if the custom hooks can't be loaded (backport from 3.x) 2012-06-17 19:03:39 +10:00
Nick Coghlan 970fcef84b Issue #15044: Handle Fedora 17's approach to ndbm compatibility (backport from 3.x) 2012-06-17 18:35:39 +10:00
Meador Inge 43f42fc3cb Issue #15054: Fix incorrect tokenization of 'b' and 'br' string literals.
Patch by Serhiy Storchaka.
2012-06-16 21:05:50 -05:00
Petri Lehtinen 7cf6699699 #15036: Make a repeated changes and flushes work with single-file mailboxes 2012-06-15 20:50:51 +03:00
Antoine Pitrou 5ec84cd69e Issue #14933: fix misleading doc about weakref support in extension types. 2012-06-15 19:11:31 +02:00
Antoine Pitrou 884fb1c831 Skip test_bigmem.test_unicode_repr_oflw, since it crashes (issue #14904). 2012-06-15 18:33:48 +02:00
Sandro Tosi 771d98d694 Issue #15060: better fix, thanks to review on #python-dev 2012-06-14 00:36:54 +02:00