Commit Graph

76736 Commits

Author SHA1 Message Date
Brett Cannon 569ff4fbbc Issue #15031: Refactor some code in importlib pertaining to validating
and compiling bytecode.

Thanks to Ronan Lamy for pointing the redundancy and taking an initial
stab at the refactor (as did Nick Coghlan).
2013-01-11 18:09:25 -05:00
Brett Cannon 77173c01c9 merge 2013-01-11 15:44:57 -05:00
Brett Cannon ed6b4c0020 merge 2013-01-11 15:44:00 -05:00
Brett Cannon 4d35c57c9c merge 2013-01-11 15:43:34 -05:00
Brett Cannon c57f9f9419 Merge from 3.3 for fix for issue #16730 2013-01-11 15:42:30 -05:00
Brett Cannon a9976b3e32 Issue #16730: Don't raise an exception in
importlib.machinery.FileFinder when the directory has become
unreadable or a file. This brings semantics in line with Python 3.2
import.

Reported and diagnosed by David Pritchard.
2013-01-11 15:40:12 -05:00
Serhiy Storchaka 1829bb4591 Issue #15539: Fix a backup file creation in pindent.py on Windows. 2013-01-11 22:21:45 +02:00
Serhiy Storchaka b4fb2e2aac Issue #15539: Fix a backup file creation in pindent.py on Windows. 2013-01-11 22:19:07 +02:00
Serhiy Storchaka a3a01b6ac3 Issue #15539: Fix a backup file creation in pindent.py on Windows. 2013-01-11 22:18:17 +02:00
Georg Brandl cba18fefdc merge with 3.3 2013-01-11 20:26:54 +01:00
Georg Brandl 154dc4e423 Closes #16936: fix duplicate/ambiguous description of stat.S_IFMT in the docs. 2013-01-11 20:25:54 +01:00
Brett Cannon b463c482bf Issue #3583: mention that testing whether a bad address not triggering
an OSError can mean a bad DNS server and not an actual bug.
2013-01-11 11:17:53 -05:00
Tim Golden 9d30698d9e #16921 Since Win9x is no longer supported, CREATE_NEW_CONSOLE is
no longer implied by shell=True
2013-01-11 13:28:31 +00:00
Ezio Melotti e814501c21 Merge patchcheck changes with 3.3 2013-01-11 14:12:42 +02:00
Ezio Melotti 8762595ef3 Merge patchcheck changes with 3.2 2013-01-11 14:12:20 +02:00
Ezio Melotti 5e12bb728f Add a note about checking refleaks to patchcheck. 2013-01-11 14:07:47 +02:00
Serhiy Storchaka f3ffb01976 Null merge 2013-01-11 12:34:48 +02:00
Serhiy Storchaka 69c753d9a6 Null merge 2013-01-11 12:34:21 +02:00
Serhiy Storchaka e085306e54 Merge heads 2013-01-11 12:33:10 +02:00
Serhiy Storchaka 5150a3393d Merge heads 2013-01-11 12:32:37 +02:00
Serhiy Storchaka fd25ffa012 Merge heads 2013-01-11 12:28:53 +02:00
Serhiy Storchaka 9942e5a9cf Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement.  pindent.py no longer produces
improper indentation.  pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line.  Added
regression tests for pindent.py.  Modernized pindent.py.
2013-01-11 12:12:32 +02:00
Serhiy Storchaka 40ce22edb5 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement.  pindent.py no longer produces
improper indentation.  pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line.  Added
regression tests for pindent.py.  Modernized pindent.py.
2013-01-11 12:10:57 +02:00
Serhiy Storchaka 6840a54ad4 Issue #15539: Fix a number of bugs in Tools/scripts/pindent.py.
Now pindent.py works with a "with" statement.  pindent.py no longer produces
improper indentation.  pindent.py now works with continued lines broken after
"class" or "def" keywords and with continuations at the start of line.  Added
regression tests for pindent.py.  Modernized pindent.py.
2013-01-11 12:04:23 +02:00
Sandro Tosi ba8279f252 merge with 3.3 2013-01-11 10:49:43 +01:00
Sandro Tosi a525fc161a merge with 3.2 2013-01-11 10:49:28 +01:00
Sandro Tosi 32587fbb89 grammatical fix; thanks to Alex Rudnick from docs@ 2013-01-11 10:49:00 +01:00
Ezio Melotti 14af64fb38 #16154: merge with 3.3. 2013-01-11 09:12:49 +02:00
Ezio Melotti 5a4b03dd82 #16154: merge with 3.2. 2013-01-11 09:12:28 +02:00
Ezio Melotti 405079213b #16154: fix some doctests in Doc/library. Patch by Ravi Sinha. 2013-01-11 09:09:07 +02:00
Chris Jerdonek 1f49c5c37e Issue #16874 (merge from 3.3): fix some documentation formatting. 2013-01-10 23:04:44 -08:00
Chris Jerdonek b2b2252a81 Issue #16874 (merge from 3.2): fix some documentation formatting. 2013-01-10 23:03:42 -08:00
Chris Jerdonek 444d153d7e Issue #16874 (forward-port from 2.7): fix some documentation formatting. 2013-01-10 23:01:27 -08:00
Ezio Melotti ee46b6c5c4 #13899: merge with 3.3. 2013-01-11 08:44:25 +02:00
Ezio Melotti adfbb8e8ec #13899: merge with 3.2. 2013-01-11 08:43:53 +02:00
Ezio Melotti fe8e6e7414 #13899: \A, \Z, and \B now correctly match the A, Z, and B literals when used inside character classes (e.g. [A]). Patch by Matthew Barnett. 2013-01-11 08:32:01 +02:00
Ezio Melotti 2645936e27 #16925: merge with 3.3. 2013-01-11 06:32:06 +02:00
Ezio Melotti dc1fa80b6c #16925: test_configparser now works with unittest test discovery. Patch by Zachary Ware. 2013-01-11 06:30:57 +02:00
Ezio Melotti aabd0b0312 #16918: merge with 3.3. 2013-01-11 06:05:51 +02:00
Ezio Melotti 5d3dba0d27 #16918: test_codecs now works with unittest test discovery. Patch by Zachary Ware. 2013-01-11 06:02:07 +02:00
Ezio Melotti e0b87edd7f Merge fix for broken/disabled test. 2013-01-11 05:57:58 +02:00
Ezio Melotti 26ed234052 Enable a broken test and fix it. 2013-01-11 05:54:57 +02:00
Ezio Melotti 45d5de1500 #16919: merge with 3.3. 2013-01-11 05:20:01 +02:00
Ezio Melotti 90bbbd1164 #16919: test_crypt now works with unittest test discovery. Patch by Zachary Ware. 2013-01-11 05:18:45 +02:00
R David Murray edb0e5eb2c merge #13934: document sqlite version strings, use correct one in test. 2013-01-10 20:20:19 -05:00
R David Murray d394455aae merge #13934: document sqlite version strings, use correct one in test. 2013-01-10 20:19:35 -05:00
R David Murray 3f7beb99dd #13934: document sqlite version strings, use correct one in test. 2013-01-10 20:18:21 -05:00
Benjamin Peterson f86b3c394c merge 3.3 (#16900) 2013-01-10 14:16:42 -06:00
Benjamin Peterson 36f7b97787 remove __del__ because it's evil and also prevents the ResourceWarning on the socket from happening (closes #16900) 2013-01-10 14:16:20 -06:00
R David Murray 96983afd0c merge #15545: fix sqlite3.iterdump regression on unsortable row_factory objects.
The fix for issue 9750 introduced a regression by sorting the row objects
returned by fetchall.  But if a row_factory such as sqlite3.Row is used, the
rows may not be sortable (in Python3), which leads to an exception.  The
sorting is still a nice idea, so the patch moves the sort into the sql.

Fix and test by Peter Otten.
2013-01-10 11:15:57 -05:00