Nick Coghlan
eb8d627bbd
Issue #6074 : Apply an appropriate fix for importlib based imports
2012-10-19 23:32:00 +10:00
Nick Coghlan
34937ce249
Issue #6074 : Forward port Windows read-only source file fix from 2.7
2012-10-19 22:38:14 +10:00
Giampaolo Rodola'
2d51f687e1
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:40:28 +02:00
Giampaolo Rodola'
b0cc91290c
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:34:32 +02:00
Giampaolo Rodola'
89e92854b6
Fix issue #16270 : urllib may hang when used for retrieving files via FTP by using a context manager.
2012-10-19 13:25:17 +02:00
Ned Deily
5d590d8705
Issue #16226 : Fix IDLE Path Browser crash.
...
(Patch by Roger Serwy)
2012-10-18 18:19:11 -07:00
Ned Deily
bfbf3f139d
Issue #16226 : Fix IDLE Path Browser crash.
...
(Patch by Roger Serwy)
2012-10-18 18:16:44 -07:00
Trent Nelson
c78649873f
Merge issue #15298 .
2012-10-17 18:05:27 -04:00
Trent Nelson
ecbe2a9185
Issue #15298 : refactor previous fix from 66959d419369.
2012-10-17 18:03:24 -04:00
Giampaolo Rodola'
284529dcf4
test_logging.py: where needed use unittest's assertGreater, assertLesser, assertIs rather than assertTrue (also in order to debug issue 16264)
2012-10-17 13:24:27 +02:00
Trent Nelson
b4e4c92592
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-17 06:16:02 -04:00
Trent Nelson
016884cbaa
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-17 06:15:40 -04:00
Trent Nelson
45bb613e25
Issue #16257 : make test_create_connection() handle ENETUNREACH.
2012-10-17 06:15:15 -04:00
Trent Nelson
b21099a4ca
Merge issue #15298 : fix an OS X bootstrap issue with _sysconfigdata.py.
2012-10-17 04:24:44 -04:00
Trent Nelson
ee528cccde
Issue #15298 : fix an OS X bootstrap issue with _sysconfigdata.py.
...
Reported by: Ned Deily.
2012-10-17 04:23:50 -04:00
Eric Snow
42da889fec
merge for issue #16160 : Subclass support now works for types.SimpleNamespace.
2012-10-16 22:45:49 -07:00
Eric Snow
547298c94c
Close #16160 : Subclass support now works for types.SimpleNamespace. Thanks to RDM for noticing.
2012-10-16 22:35:38 -07:00
Antoine Pitrou
8261f838ff
Merge for issue #15744 : add tests for the writelines() method of file objects.
2012-10-16 23:06:17 +02:00
Antoine Pitrou
0c7081aff4
Merge for issue #15744 : add tests for the writelines() method of file objects.
2012-10-16 23:05:01 +02:00
Antoine Pitrou
3ed2cb5520
Also add tests for TextIOWrapper.writelines() (issue #15744 ).
2012-10-16 23:02:27 +02:00
Antoine Pitrou
131a489903
Add tests for the writelines() method of file objects.
...
Original patch by Felipe Cruz.
2012-10-16 22:57:11 +02:00
Antoine Pitrou
cfc22b4a9b
Issue #15958 : bytes.join and bytearray.join now accept arbitrary buffer objects.
2012-10-16 21:07:23 +02:00
Trent Nelson
b16269e375
Merge issue #15298 : ensure _sysconfigdata is generated in build directory,
...
not source directory.
Patch by: Richard Oudkerk (sbt).
2012-10-16 08:17:11 -04:00
Trent Nelson
c101bf32c4
Issue #15298 : ensure _sysconfigdata is generated in build directory,
...
not source directory.
Patch by Richard Oudkerk (sbt).
2012-10-16 08:13:12 -04:00
Trent Nelson
744faddae8
Merge issue #15833 : don't raise an exception if importlib can't write
...
byte-compiled files.
This fixes a regression introduced by 3.3.
Patch by Charles-François Natali.
2012-10-16 08:03:21 -04:00
Trent Nelson
d783c8ed00
Issue #15833 : don't raise an exception if importlib can't write byte-compiled
...
files.
This fixes a regression introduced by 3.3. Patch by Charles-François Natali.
2012-10-16 07:47:34 -04:00
Vinay Sajip
3ba726ce04
Closes #16244 : Merged change from 3.3.
2012-10-16 10:33:30 +01:00
Vinay Sajip
e7e7af4558
Issue #16244 : Merged change from 3.2.
2012-10-16 10:32:13 +01:00
Vinay Sajip
ee892b9226
Issue #16244 : Remove file mode overrides.
2012-10-16 10:28:31 +01:00
Giampaolo Rodola'
35eeb30adf
logging's SocketHandler: get rid of some legacy code and use the newer socket.create_connection() utility function
2012-10-15 16:57:37 +02:00
Nadeem Vawda
6d70870812
Clean up some warnings in test suite output.
2012-10-14 01:42:32 +02:00
Benjamin Peterson
174baa39f6
merge heads
2012-10-13 11:58:23 -04:00
Benjamin Peterson
d541d3fee4
When not optimized function stack sizes are much larger and may cause this test to fail.
2012-10-13 11:46:44 -04:00
Nadeem Vawda
801985e4b7
lzma module: Rewrap docstrings at 72 columns, as per PEP 8.
2012-10-13 04:26:49 +02:00
Benjamin Peterson
143d034ecd
merge 3.2
2012-10-12 12:04:32 -04:00
Benjamin Peterson
7a9953edfb
skip if __doc__ is gone
2012-10-12 11:44:19 -04:00
Benjamin Peterson
a5c4090394
skip if __doc__ is gone
2012-10-12 11:44:19 -04:00
Benjamin Peterson
951a9e381b
fix to work if __doc__ is removed
2012-10-12 11:44:10 -04:00
Benjamin Peterson
fa5f75a7ce
fix to work if __doc__ is removed
2012-10-12 11:44:10 -04:00
Brett Cannon
6072e0bf42
Remove uses of % with str.format.
2012-10-12 10:00:34 -04:00
Brian Curtin
e33f20c4e9
Merge 3.2
2012-10-11 16:12:47 -05:00
Brian Curtin
0b960f5a58
Fix #16176 . Properly identify Windows 8 via platform.platform()
...
Add handling of the 6.2 release line, aka Windows 8 and Windows 2012 Server.
2012-10-11 16:07:52 -05:00
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