Vinay Sajip
bd40d3e144
Closes #15776 : pyvenv now works with existing directories.
2012-10-11 17:22:45 +01:00
Senthil Kumaran
24dfdb69ca
code smell. remove pdb
2012-10-11 00:11:26 -07:00
Senthil Kumaran
52d2720499
Issue #16088 : BaseHTTPRequestHandler's send_error method includes a
...
Content-Length header. Patch by Antoine Pitrou.
2012-10-10 23:16:21 -07:00
Jesus Cea
5ea197aef3
Closes #16135 : Removal of OS/2 support (distutils) (II)
2012-10-11 01:56:01 +02:00
Jesus Cea
d17833d360
Closes #16135 : Removal of OS/2 support (distutils)
2012-10-11 01:20:12 +02:00
Brett Cannon
9407d50208
Merge fix for issue #15111 .
2012-10-10 19:18:37 -04:00
Brett Cannon
a6ce4fd426
Closes issue #15111 : Calling __import__ with a module specified in
...
fromlist which causes its own ImportError (e.g. the module tries to
import a non-existent module) should have that exception propagate.
2012-10-10 19:03:46 -04:00
Gregory P. Smith
70e0007f55
Fixes Issue #16114 : The subprocess module no longer provides a
...
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
2012-10-10 03:53:16 -07:00
Gregory P. Smith
a10ddb8a55
Fixes Issue #16114 : The subprocess module no longer provides a
...
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
2012-10-10 03:44:47 -07:00
Gregory P. Smith
5591b02a4c
Fixes Issue #16114 : The subprocess module no longer provides a
...
misleading error message stating that args[0] did not exist when
either the cwd or executable keyword arguments specified a path that
did not exist.
It now keeps track of if the child got as far as preexec and reports it if
not back to the parent via a special "noexec" error message value in
the error pipe so that the cwd can be blamed for a failed chdir
instead of the exec of the executable being blamed instead.
The executable is also always reported accurately when exec fails.
Unittests enhanced to cover these cases.
2012-10-10 03:34:47 -07:00
Chris Jerdonek
be51a08b42
Issue #16170 : Merge subprocess test unskip from 3.3.
2012-10-09 13:19:23 -07:00
Chris Jerdonek
86b0fb23e5
Issue #16170 : Remove Linux skip from test_subprocess's test_executable test.
2012-10-09 13:17:49 -07:00
Benjamin Peterson
455fa0a314
merge heads
2012-10-09 11:16:26 -04:00
Benjamin Peterson
29e02a2be8
merge 3.3
2012-10-09 11:16:13 -04:00
Benjamin Peterson
b29614e047
compare singletons by identity not equality ( closes #16712 )
...
Patch from Serhiy Storchaka.
2012-10-09 11:16:03 -04:00
Benjamin Peterson
a511935151
compare with equality not identity (issue #16172 )
...
Patch from Serhiy Storchaka.
2012-10-09 11:14:59 -04:00
Richard Oudkerk
934f563353
Issue #16169 : Merge
2012-10-09 13:54:02 +01:00
Richard Oudkerk
ea69bd3ce1
Issue #16169 : Fix ctypes.WinError()'s confusion between errno and winerror
2012-10-09 13:28:10 +01:00
Vinay Sajip
cf9e2f2420
Closes #16110 : fileConfig now accepts a pre-initialised ConfigParser instance.
2012-10-09 09:06:03 +01:00
Vinay Sajip
6978d58e18
Closes #16168 : Merged SysLogHandler update from 3.3.
2012-10-09 08:23:06 +01:00
Vinay Sajip
7903df4125
Issue #16168 : Merged SysLogHandler update from 3.2.
2012-10-09 08:22:01 +01:00
Vinay Sajip
b5ca932be2
Issue #16168 : Use specified socket type for domain sockets in SysLogHandler.
2012-10-09 08:19:25 +01:00
Vinay Sajip
8cf4eb1463
Issue #16141 : replaced old-style exception handling code in logging with the modern idiom.
2012-10-09 08:06:13 +01:00
Chris Jerdonek
82a74cb129
Issue #16115 : Merge test skip from 3.3.
2012-10-08 17:54:45 -07:00
Chris Jerdonek
2d051b8eaf
Issue #16115 : Skip a newly added subprocess.Popen() test on Linux.
2012-10-08 17:53:46 -07:00
Chris Jerdonek
68a11fc337
Issue #16115 : Merge test improvements from 3.3.
2012-10-08 16:01:00 -07:00
Chris Jerdonek
776cb199bc
Issue #16115 : Improve testing of the executable argument to subprocess.Popen().
2012-10-08 15:56:43 -07:00
Nadeem Vawda
4907b0a2e0
bz2 module: Rewrap docstrings at 72 columns, as per PEP 8.
2012-10-08 20:31:34 +02:00
Nadeem Vawda
3b4a4f5199
Stylistic tweaks to the bz2 module to make it easier to transplant changes from
...
it to http://pypi.python.org/pypi/bz2file .
2012-10-08 19:20:49 +02:00
Richard Oudkerk
fc7b0ec5a2
Use setUpClass() and tearDownClass() in test_multiprocessing.
...
Each manager test class now uses a separate manager. Also, process
pools are no longer created before starting any tests.
Note that warnings are written if the manager for a test case still
has live objects when it is shutdown. This is true for a few test cases
which fail to wait for all child processes to end.
2012-10-08 14:56:24 +01:00
Richard Oudkerk
5046e9741c
Make __mp_main__ an alias for __main__ in all processes to simplify
...
pickling of classes defined in main module.
2012-10-08 13:07:00 +01:00
Andrew Svetlov
2aa5f3cf51
Issue #16120 : Use |yield from| in stdlib.
...
Patch by Berker Peksag.
2012-10-07 23:21:15 +03:00
Andrew Svetlov
08ab95485b
Merge issue #14900 : Add aliases for sorting params for pstat to follow column names from pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 19:19:34 +03:00
Andrew Svetlov
3e5dae0ee2
Merge issue #14900 : Add aliases for sorting params for pstat to follow column names from pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 19:19:17 +03:00
Andrew Svetlov
c3e5b10ae7
Issue #14900 : Add aliases for sorting params for pstat to follow column names from pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 19:18:39 +03:00
Andrew Svetlov
1558d79b82
Issue #14900 : Distuguish call count and primitive call count in pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 18:59:27 +03:00
Andrew Svetlov
a514ea32b2
Merge issue #14900 : Distuguish call count and primitive call count in pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 18:59:11 +03:00
Andrew Svetlov
2ef4584e6d
Issue #14900 : Distuguish call count and primitive call count in pstat output.
...
Patch by Arne Babenhauserheide.
2012-10-07 18:58:42 +03:00
Eli Bendersky
ce3b2758cc
merge 3.3
2012-10-07 07:24:24 -07:00
Eli Bendersky
948af23a77
Issue #15888 : fixing problems in ipaddress doctests. Patch by Chris Jerdonek
2012-10-07 07:23:50 -07:00
Hynek Schlawack
4865376c44
Closes #1492704 : Make shutil.copyfile() raise a distinct SameFileError
...
Patch by Atsuo Ishimoto.
2012-10-07 12:49:58 +02:00
Armin Ronacher
74b38b190f
Issue #16148 : Small improvements and cleanup. Added version information
...
to docs.
2012-10-07 10:29:32 +02:00
Victor Stinner
15a1136547
Issue #16147 : PyUnicode_FromFormatV() doesn't need anymore to allocate a buffer
...
on the heap to format numbers.
2012-10-06 23:48:20 +02:00
Victor Stinner
e215d960be
Issue #16147 : Rewrite PyUnicode_FromFormatV() to use _PyUnicodeWriter API
...
* Simplify the code: replace 4 steps with one unique step using the
_PyUnicodeWriter API. PyUnicode_Format() has the same design. It avoids to
store intermediate results which require to allocate an array of pointers on
the heap.
* Use the _PyUnicodeWriter API for speed (and its convinient API):
overallocate the buffer to reduce the number of "realloc()"
* Implement "width" and "precision" in Python, don't rely on sprintf(). It
avoids to need of a temporary buffer allocated on the heap: only use a small
buffer allocated in the stack.
* Add _PyUnicodeWriter_WriteCstr() function
* Split PyUnicode_FromFormatV() into two functions: add
unicode_fromformat_arg().
* Inline parse_format_flags(): the format of an argument is now only parsed
once, it's no more needed to have a subfunction.
* Optimize PyUnicode_FromFormatV() for characters between two "%" arguments:
search the next "%" and copy the substring in one chunk, instead of copying
character per character.
2012-10-06 23:03:36 +02:00
Andrew Svetlov
7e3cde5901
revert accidental inclusion of subprocess tests
2012-10-06 18:46:09 +03:00
Andrew Svetlov
a2028733ef
revert accidental inclusion of subprocess tests
2012-10-06 18:45:47 +03:00
Andrew Svetlov
b2209ccfa0
revert accidental inclusion of subprocess tests
2012-10-06 18:45:24 +03:00
Andrew Svetlov
ac0f965fd0
Add spaces to follow PEP8.
2012-10-06 18:38:30 +03:00
Andrew Svetlov
1d0d541259
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:10:52 +03:00
Andrew Svetlov
5061a34283
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:10:01 +03:00
Andrew Svetlov
afbf90c993
Issue #16025 : Minor corrections to the zipfile documentation.
...
Patch by Serhiy Storchaka.
2012-10-06 18:02:05 +03:00
Andrew Svetlov
7d14015e62
Issue #16120 : Use |yield from| in stdlib.
...
Patch by Berker Peksag.
2012-10-06 17:11:45 +03:00
Armin Ronacher
aa9a79d279
Issue #16148 : implemented PEP 424
2012-10-06 14:03:24 +02:00
Andrew Svetlov
ef08fb1f04
Issue #13896 : Make shelf instances work with 'with' as context managers.
...
Original patch by Filip Gruszczyński.
2012-10-06 13:52:19 +03:00
Christian Heimes
4a0270d82b
Issue #16113 : integrade SHA-3 (Keccak) patch from http://hg.python.org/sandbox/cheimes
2012-10-06 02:23:36 +02:00
Andrew Svetlov
220e869a51
Merge issue #16115 : Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das
2012-10-05 22:53:12 +03:00
Andrew Svetlov
1a53c0cbf5
Issue #16115 : Add test for check that executable arg to Popen() takes precedence over args[0] arg\n \n Patch by Kushal Das
2012-10-05 22:52:15 +03:00
Andrew Svetlov
64478ac219
normalize whitespaces
2012-10-05 22:16:55 +03:00
Andrew Svetlov
9b1e59a2b3
Issue #16123 : IDLE - deprecate running without a subprocess.
...
Patch by Roger Serwy
2012-10-05 22:12:44 +03:00
Jesus Cea
b451fd65de
MERGE: #16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:32:10 +02:00
Jesus Cea
cb95996fdc
MERGE: #16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:31:31 +02:00
Jesus Cea
685fffa8f4
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Fix original patch
2012-10-05 05:21:42 +02:00
Jesus Cea
adc8211e00
#16112 : platform.architecture does not correctly escape argument to /usr/bin/file. Use 'communicate()' and decode the bytes
2012-10-05 04:58:38 +02:00
Jesus Cea
f01d695ccd
Closes #16135 : Removal of OS/2 support
2012-10-05 03:36:11 +02:00
Jesus Cea
fa7d5392d4
Test should be skipped in 'riscos', as intented
2012-10-05 03:28:20 +02:00
Jesus Cea
4791a24268
#16135 : Removal of OS/2 support (Python code partial cleanup)
2012-10-05 03:15:39 +02:00
Jesus Cea
f1af705720
#16135 : Removal of OS/2 support (Remove OS2 and OS/2 references)
2012-10-05 02:48:46 +02:00
Andrew Svetlov
6964f4b790
Merge: Issue #14997 : disable <F5> in idle shell window.
...
Thanks to Roger Serwy for patch.
2012-10-04 22:50:58 +03:00
Andrew Svetlov
eb0314f5a8
Merge: Issue #14997 : disable <F5> in idle shell window.
...
Thanks to Roger Serwy for patch.
2012-10-04 22:50:13 +03:00
Andrew Svetlov
4ca222d4d5
Issue #14997 : disable <F5> in idle shell window.
...
Thanks to Roger Serwy for patch.
2012-10-04 22:48:34 +03:00
Andrew Svetlov
456b2b8777
Issue #14446 : Remove deprecated tkinter functions
...
Thanks to Michael Driscoll
2012-10-04 22:10:09 +03:00
Andrew Svetlov
65e9c57369
Issue #15417 : Add support for csh and fish in venv activation scripts.
2012-10-04 21:48:58 +03:00
Antoine Pitrou
997adb5819
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
2012-10-04 19:54:53 +02:00
Antoine Pitrou
ee329318db
Issue #16089 : Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
2012-10-04 19:53:29 +02:00
Jesus Cea
d96c1fb6ed
MERGE: Closes #16126 : PyErr_Format format mismatch in _testcapimodule.c
2012-10-04 16:07:03 +02:00
Jesus Cea
6e1d2b6e78
Closes #16126 : PyErr_Format format mismatch in _testcapimodule.c
2012-10-04 16:06:30 +02:00
Jesus Cea
677ffd16bf
MERGE: Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:58:22 +02:00
Jesus Cea
e8801e2e44
MERGE: Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:56:23 +02:00
Jesus Cea
fc990e942f
Closes #16112 : platform.architecture does not correctly escape argument to /usr/bin/file
2012-10-04 13:51:43 +02:00
Jesus Cea
dc469454ec
Closes #15488 : Closed files keep their buffer alive
2012-10-04 12:37:56 +02:00
Ezio Melotti
3ffd29b615
Remove unnecessary [].
2012-10-02 19:45:00 +03:00
Vinay Sajip
3e763dadde
Updated docstring for logging.config.listen().
2012-10-02 16:15:33 +01:00
Vinay Sajip
4ded5512d7
Issue #15452 : Added verify option for logging configuration socket listener.
2012-10-02 15:56:16 +01:00
R David Murray
6e7bd65453
Merge #11109 : clean up docs, add whatsnew entry, and fix Justin's last name.
2012-10-01 21:47:57 -04:00
R David Murray
258fabefde
#11109 : clean up docs, add whatsnew entry, and fix Justin's last name.
2012-10-01 21:43:46 -04:00
Victor Stinner
621ef3d84f
Issue #15609 : Optimize str%args for integer argument
...
- Use _PyLong_FormatWriter() instead of formatlong() when possible, to avoid
a temporary buffer
- Enable the fast path when width is smaller or equals to the length,
and when the precision is bigger or equals to the length
- Add unit tests!
- formatlong() uses PyUnicode_Resize() instead of _PyUnicode_FromASCII()
to resize the output string
2012-10-02 00:33:47 +02:00
Philip Jenvey
fd0d3e5d25
more yield from
...
patch by Serhiy Storchaka
2012-10-01 15:34:31 -07:00
Stefan Krah
ca1232f7db
Merge 3.3.
2012-10-01 23:30:32 +02:00
Stefan Krah
219c7b90d0
Issue #15599 : Increase the switch interval. Several systems cannot handle
...
gil_interval == 1 in extreme situations.
2012-10-01 23:21:45 +02:00
Nadeem Vawda
40ee157458
Merge: #16304 : Optimizations for BZ2File, and minor bugfix.
2012-10-01 23:11:35 +02:00
Nadeem Vawda
eb70be2b46
Issue #16304 : Further optimize BZ2File.readlines?().
2012-10-01 23:05:32 +02:00
Nadeem Vawda
138ad5066d
Fix error handling in new fast path of BZ2File.readline().
2012-10-01 23:04:11 +02:00
Nadeem Vawda
452add08a1
Issue #16304 : Another performance optimization for BZ2File.
...
Patch by Serhiy Storchaka.
2012-10-01 23:02:50 +02:00
Philip Jenvey
4993cc0a5b
utilize yield from
2012-10-01 12:53:43 -07:00
Philip Jenvey
075bbb176f
utilize subprocess.DEVNULL
2012-10-01 11:48:46 -07:00
Tim Golden
8a9f93699f
Issue16097 Fix small typo in comment (patch by Wael Al Jishi)
2012-10-01 16:41:08 +01:00
Tim Golden
621302c3f4
Issue16097 Fix small typo in comment (patch by Wael Al Jishi)
2012-10-01 16:40:40 +01:00
Nadeem Vawda
26bbdb212d
Merge: #16304 : Further performance improvements for BZ2File.
...
Optimizations suggested by Serhiy Storchaka.
2012-10-01 00:04:46 +02:00
Nadeem Vawda
b7a0bfe912
Issue #16304 : Further performance improvements for BZ2File.
...
Optimizations suggested by Serhiy Storchaka.
2012-09-30 23:58:01 +02:00
Chris Jerdonek
9a6ada8026
Issue #15533 : Merge update from 3.2.
2012-09-30 09:46:04 -07:00
Chris Jerdonek
c2cd626497
Issue #15533 : Skip test_cwd_with_relative_*() tests on Windows pending resolution of issue.
2012-09-30 09:45:00 -07:00
Chris Jerdonek
ca42f00657
Issue #15533 : Merge update from 3.3.
2012-09-30 09:46:55 -07:00
Nadeem Vawda
2747b2f21e
Merge: Fix the return value of BZ2File._read_block() to be consistent with comments.
2012-09-30 13:45:22 +02:00
Nadeem Vawda
9e2a28ea54
Fix the return value of BZ2File._read_block() to be consistent with comments.
2012-09-30 13:41:29 +02:00
Chris Jerdonek
1e0a88a11d
Issue #15533 : Merge fix from 3.3.
2012-09-30 02:22:50 -07:00
Chris Jerdonek
28714c8c26
Issue #15533 : Merge fix from 3.2.
2012-09-30 02:15:37 -07:00
Chris Jerdonek
ec3ea94251
Issue #15533 : Clarify docs and add tests for subprocess.Popen()'s cwd argument.
2012-09-30 00:10:28 -07:00
Nadeem Vawda
65c848e484
Merge #16034 : Fix performance regressions in the new BZ2File implementation.
...
Thanks to Victor Hooi for the bug report, and Serhiy Storchaka for the initial patch.
2012-09-30 04:01:31 +02:00
Nadeem Vawda
6c57318c3a
Issue #16034 : Fix performance regressions in the new BZ2File implementation.
...
Thanks to Victor Hooi for the bug report, and Serhiy Storchaka for the initial patch.
2012-09-30 03:57:33 +02:00
Antoine Pitrou
04e21607d1
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:09:59 +02:00
Antoine Pitrou
2a180207ba
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:08:55 +02:00
Antoine Pitrou
f727082b71
Speed up test_httpservers by avoiding a one-second cleanup wait after each test case.
2012-09-30 01:05:30 +02:00
Gregory P. Smith
b8ad23f4aa
Remove the new trivial pty.spawn() test as it hangs on many buildbots.
2012-09-29 13:50:40 -07:00
Gregory P. Smith
0f21adf799
pty.spawn() now returns the child process status as returned by os.waitpid().
...
Addresses the remaining feature request from issue #2489 .
2012-09-29 12:41:03 -07:00
Gregory P. Smith
288d9aec4b
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD to
...
return a returncode of 0 when the child has already exited or cannot be
waited on.
2012-09-29 11:55:16 -07:00
Gregory P. Smith
02dee1acd8
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD
...
to return a returncode of 0 when the child has already exited or cannot be
waited on.
2012-09-29 11:53:08 -07:00
Gregory P. Smith
3905171f1e
Fixes issue #15756 : subprocess.poll() now properly handles errno.ECHILD
...
to return a returncode of 0 when the child has already exited or cannot
be waited on.
2012-09-29 11:40:38 -07:00
Benjamin Peterson
14fb44e1ba
merge mostly from default
2012-09-29 14:14:19 -04:00
Benjamin Peterson
b8350f1c7d
upgrade to UCD 6.2
2012-09-29 13:47:39 -04:00
Georg Brandl
8850664d26
merge with 3.3
2012-09-29 09:51:42 +02:00
Georg Brandl
e054f452bd
Fix test_sys.test_implementation for final releases.
2012-09-29 09:44:17 +02:00
Georg Brandl
08a9012352
Bump version to 3.4.0 alpha 0.
2012-09-29 09:34:13 +02:00
Georg Brandl
99a247fd01
Merge with main repo default branch.
2012-09-29 09:27:15 +02:00
Georg Brandl
c7dcd50e4e
Bump version to 3.3.0 final.
2012-09-29 09:04:54 +02:00
Brett Cannon
8ed677db12
Add some comments.
2012-09-28 16:41:39 -04:00
Stefan Krah
8a491a8eef
Closes #16080 : The decorator ignores failed attempts to set the required
...
locale, so an additional check is required.
2012-09-28 17:17:11 +02:00
Michael Foord
28d591ceef
Closes issue 15323. Improve failure message of Mock.assert_called_once_with
2012-09-28 16:15:22 +01:00
Stefan Krah
6fb204af79
Issue #16080 : Use run_with_locale() decorator to reset the locale properly.
2012-09-28 16:18:54 +02:00
Michael Foord
8ef1fcecc5
Merge
2012-09-28 15:19:45 +01:00
Michael Foord
d38e6e516d
Closes issue 16064. No longer hard code executable name in unittest help output.
2012-09-28 15:14:37 +01:00
Michael Foord
7a1901f861
Closes issue #12376 : Pass on parameters in unittest.TextTestResult.__init__ super call
2012-09-28 14:14:03 +01:00
Benjamin Peterson
43f8f4cf18
renmae test method to avoid conflict ( #16056 )
2012-09-27 18:10:17 -04:00
Mark Dickinson
7c95bb35e4
Issue #16060 : Fix a double DECREF in int() implementation. Thanks Serhiy Storchaka.
2012-09-27 19:38:59 +01:00
Ezio Melotti
c7e139b431
#1087 : use proper skips in test_os.
2012-09-26 20:01:34 +03:00
Benjamin Peterson
52c62d8697
rephrase
2012-09-26 00:25:10 -04:00
Petri Lehtinen
f6b30385cc
#15222 : Merge 3.2
2012-09-25 22:06:07 +03:00
Petri Lehtinen
f39884bb5a
#15222 : Insert blank line after each message in mbox mailboxes
2012-09-25 22:02:06 +03:00
Petri Lehtinen
468091954f
#15222 : test_mailbox: End message template in a newline
2012-09-25 21:58:51 +03:00
Benjamin Peterson
3095f4724e
raise a ValueError instead of an AssertionError when pool is an invalid state
2012-09-25 12:45:42 -04:00
Benjamin Peterson
3331a20464
merge 3.2
2012-09-25 11:53:30 -04:00
Benjamin Peterson
1654d74e9a
switch assertion to an explicit ValueError
2012-09-25 11:48:50 -04:00
Benjamin Peterson
a820c7ca70
fix test_compileall when run with -O[O]
2012-09-25 11:42:35 -04:00
Benjamin Peterson
0beb4d28d0
don't depend on __debug__ because it's baked in at freeze time (issue #16046 )
2012-09-25 11:22:59 -04:00
Benjamin Peterson
feaa54f537
don't depend on __debug__ because it's baked in at freeze time (issue #16046 )
2012-09-25 11:22:59 -04:00
Benjamin Peterson
d79ac0fad7
merge 3.2
2012-09-25 11:03:27 -04:00
Benjamin Peterson
d388c4e02f
use modern conditional syntax
2012-09-25 11:01:41 -04:00
Senthil Kumaran
49d130227b
merge 3.2: Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
2012-09-25 02:37:20 -07:00
Senthil Kumaran
67b7b98a47
Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
2012-09-25 02:30:27 -07:00
Christian Heimes
22340be15e
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
...
method doesn't require an argument again.
2012-09-24 13:27:28 +02:00
Christian Heimes
e26d3af7ee
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
...
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Georg Brandl
b5f91d7eb7
Merge with 3.3.0 release clone.
2012-09-24 07:46:35 +02:00
Antoine Pitrou
a1f7655fa7
Issue #15379 : Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
...
Patch by Serhiy Storchaka.
2012-09-23 20:00:04 +02:00
Antoine Pitrou
6f80f5d444
Issue #15379 : Fix passing of non-BMP characters as integers for the charmap decoder (already working as unicode strings).
...
Patch by Serhiy Storchaka.
2012-09-23 19:55:21 +02:00
Georg Brandl
8506d3591c
Bump to 3.3.0rc3.
2012-09-23 17:15:21 +02:00
Victor Stinner
a3ff101e6a
Issue #5969 : faulthandler module: rename dump_tracebacks_later() to
...
dump_traceback_later() and cancel_dump_tracebacks_later() to
cancel_dump_traceback_later().
2012-09-23 11:06:21 +02:00
R David Murray
752a2241ea
#15925 : fix regression: return None for null and non-date strings.
...
Since the logic for null detection had to move into the _parseaddr
functions, I removed the wrappers from email.utils and just import the
_parseaddr functions directly.
2012-09-22 09:59:51 -04:00
Ezio Melotti
f82b9371f5
#15421 : merge with 3.2.
2012-09-21 17:29:20 +03:00
Ezio Melotti
85710a40e7
#15421 : fix an OverflowError in Calendar.itermonthdates() after datetime.MAXYEAR. Patch by Cédric Krier.
2012-09-21 17:26:35 +03:00
Ezio Melotti
050a61f838
#15304 : merge with 3.2.
2012-09-21 16:53:07 +03:00
Ezio Melotti
e418d76089
#15304 : fix wrong warning message in test.support.temp_cwd().
2012-09-21 16:48:12 +03:00
Ezio Melotti
8b15ee0d6e
#15980 : merge with 3.2.
2012-09-21 16:31:24 +03:00
Ezio Melotti
0847db7c01
#15980 : properly escape newlines in docstrings. Patch by Serhiy Storchaka.
2012-09-21 16:30:22 +03:00
Benjamin Peterson
61cdcf5d7e
merge 3.2
2012-09-20 23:49:33 -04:00
Benjamin Peterson
f8a9a837c4
remove gdb noise about linux-vdso
2012-09-20 23:48:23 -04:00
Alexander Belopolsky
9b9ed867bc
merged 3.2
2012-09-20 16:42:34 -04:00
Alexander Belopolsky
3ec153681e
Issue #15973 : Fixed segmentation fault on timezone comparison to other types.
2012-09-20 16:39:33 -04:00
Ezio Melotti
ab9b661fdd
#15970 : merge with 3.2.
2012-09-19 08:25:01 +03:00
Ezio Melotti
c90111f9ab
#15970 : xml.etree.ElementTree now serializes correctly the empty HTML elements "meta" and "param".
2012-09-19 08:19:12 +03:00
Antoine Pitrou
07085332cf
Issue #15526 : try to fix test_startfile's inability to clean up after itself in time.
...
Patch by Jeremy Kloth.
2012-09-16 00:13:10 +02:00
Antoine Pitrou
8a53dbeb7a
Issue #15526 : try to fix test_startfile's inability to clean up after itself in time.
...
Patch by Jeremy Kloth.
2012-09-16 00:12:50 +02:00
Antoine Pitrou
9b1c84b586
Issue #15842 : the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
...
Patch by Alessandro Moura.
2012-09-14 17:30:31 +02:00
Antoine Pitrou
1e7ee9dfa0
Issue #15842 : the SocketIO.{readable,writable,seekable} methods now raise ValueError when the file-like object is closed.
...
Patch by Alessandro Moura.
2012-09-14 17:28:10 +02:00
Richard Oudkerk
e8cd6bb127
Issue #15881 : Clarify comment in exit function
2012-09-13 17:27:15 +01:00
Stefan Krah
0b90d66342
Issue #15599 : FreeBSD on KVM cannot handle a very low switch interval.
2012-09-12 21:30:09 +02:00
Barry Warsaw
d89774e158
Merge 3.2 fix updates and tests for issue #15906 .
2012-09-12 15:31:38 -04:00
Barry Warsaw
2dceb359cb
Update merge from 2.7: s/basetring/str
2012-09-12 14:42:34 -04:00
Barry Warsaw
eaae1b76ae
A follow up for issue #15906 : change the test for calling the type conversion
...
on the action's default, reverting it back to previous behavior. Conversion
is only done on string defaults.
Add a test for this and another test that ensures such type conversions are
only called once.
2012-09-12 14:34:50 -04:00
Barry Warsaw
0ae066b281
- Issue #15906 : Fix a regression in argparse caused by the preceding change,
...
when action='append', type='str' and default=[].
2012-09-12 00:12:29 -04:00
Barry Warsaw
4b2f9e914d
- Issue #15906 : Fix a regression in argparse caused by the preceding change,
...
when action='append', type='str' and default=[].
2012-09-11 22:38:47 -04:00
Jesus Cea
b7a2800831
MERGE: Closes #15793 : Stack corruption in ssl.RAND_egd()
2012-09-11 02:08:48 +02:00
Jesus Cea
c8754a13e6
Closes #15793 : Stack corruption in ssl.RAND_egd()
2012-09-11 02:00:58 +02:00
Jesus Cea
4886d5b338
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete
2012-09-10 22:50:21 +02:00
Jesus Cea
1f2799bef4
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete
2012-09-10 22:49:50 +02:00
Stefan Krah
76e12179c5
Issue #15882 : Change _decimal to accept any coefficient tuple when
...
constructing infinities. This is done for backwards compatibility
with decimal.py: Infinity coefficients are undefined in _decimal
(in accordance with the specification).
2012-09-10 19:34:58 +02:00
R David Murray
c3bfb01a95
Merge #14649 : clarify DocTestSuite error when there are no docstrings.
...
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).
Patch by Chris Jerdonek.
2012-09-10 10:16:46 -04:00
R David Murray
5abd76a75d
#14649 : clarify DocTestSuite error when there are no docstrings.
...
Also adds tests to verify the documented behavior (which is probably a bug, as
indicated in the added comments).
Patch by Chris Jerdonek.
2012-09-10 10:15:58 -04:00
Christian Heimes
7b648753ab
Added test for 85cb90f79cbf and see how the code handles all flags at once
2012-09-10 14:48:43 +02:00
doko@ubuntu.com
01beb69c7d
backport from the trunk, to fix test_tools with srcdir != builddir
...
changeset: 77827:c23b442b5d5e
user: Antoine Pitrou <solipsis@pitrou.net>
date: Thu Jun 28 01:20:26 2012 +0200
summary: Avoid using scrdir, it's broken.
changeset: 77826:f0e58e778215
user: Neil Schemenauer <nas@arctrix.com>
date: Wed Jun 27 15:58:37 2012 -0600
summary: Fix bug in test_tools that prevented building is separate directory.
2012-09-10 14:19:42 +02:00
Georg Brandl
0085a24075
Closes #15973 : fix a segmentation fault when comparing timezone objects.
2012-09-22 09:23:12 +02:00
Georg Brandl
1aca31e8f3
Closes #15925 : fix regression in parsedate() and parsedate_tz() that should return None if unable to parse the argument.
2012-09-22 09:03:56 +02:00
Georg Brandl
deb92b5b1b
Closes #15969 : rename new API to have consistent names in the faulthandler module.
2012-09-22 08:58:55 +02:00
Stefan Krah
dbcf103be0
Issue #15882 : Change _decimal to accept any coefficient tuple when
...
constructing infinities. This is done for backwards compatibility
with decimal.py: Infinity coefficients are undefined in _decimal
(in accordance with the specification).
2012-09-10 19:34:58 +02:00
Jesus Cea
1b3f3b0316
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 01:23:05 +02:00
Jesus Cea
941bfcc537
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:27:55 +02:00
Alexander Belopolsky
5bedef3e64
Issue #15881 : Fixed 3.2 backport.
2012-09-09 13:31:08 -04:00
Alexander Belopolsky
7f704c11db
Fixed whitespace
2012-09-09 13:25:06 -04:00
Alexander Belopolsky
36351564a2
Fixed whitespace
2012-09-09 13:22:45 -04:00
Alexander Belopolsky
f36c49d124
Issue #15881 : Fixed atexit hook in multiprocessing.
2012-09-09 13:20:58 -04:00
Alexander Belopolsky
59fb38b582
Issue #15881 : Fixed atexit hook in multiprocessing.
2012-09-09 13:16:15 -04:00
Georg Brandl
5497295917
Merge in changes from 3.3.0rc2 release clone.
2012-09-09 11:19:17 +02:00