Commit graph

22439 commits

Author SHA1 Message Date
Brian Curtin
4482b01d23 Merge 3.3 2012-12-27 10:15:54 -06:00
Brian Curtin
62cf69ec7c Merge 3.2 2012-12-27 10:14:30 -06:00
Brian Curtin
12706f2082 Fix #14420. Use PyLong_AsUnsignedLong to support the full range of DWORD.
This fixes an OverflowError seen in winreg.SetValueEx when passed
winreg.REG_DWORD values that should be supported by the underlying API.
2012-12-27 10:12:45 -06:00
Hynek Schlawack
6e5c8f992a #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:20:38 +01:00
Hynek Schlawack
6f52027168 #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:15:53 +01:00
Hynek Schlawack
e26568f812 #16618: Make glob.glob match consistently across strings and bytes
Fixes handling of leading dots.

Patch by Serhiy Storchaka.
2012-12-27 10:10:11 +01:00
Andrew Svetlov
0c8ee7fc8b fix test for subprocess (#16644) 2012-12-26 23:36:17 +02:00
Andrew Svetlov
b172697cd8 fix test for subprocess (#16644) 2012-12-26 23:34:54 +02:00
Andrew Svetlov
57a1233110 fix test for subprocess (#16644) 2012-12-26 23:31:45 +02:00
Kristján Valur Jónsson
cacb400345 Merge with 3.3
Issue #14574: Ignore socket errors raised when flushing a connection on close.
2012-12-26 15:15:17 +00:00
Kristján Valur Jónsson
c8e7e2bb76 Merge with 3.2 :
Issue #14574: Ignore socket errors raised when flushing a connection on close.
2012-12-26 15:13:29 +00:00
Brian Curtin
ae57cec791 Fix #16788. Add samestat to Lib/ntpath.py 2012-12-26 08:22:00 -06:00
Brian Curtin
e701ec5d3f Add tests for Issue #10646.
This issue is now fixed due to changes in Issue #11939, so I've refactored
the tests to cover the hard link case. There are no code changes here.
2012-12-26 07:36:16 -06:00
Brian Curtin
490b32a397 Fix #11939. Set st_dev attribute on Windows to simplify os.path.samefile.
By setting the st_dev attribute, we can then remove some Windows-specific
code and move os.path.samefile/sameopenfile/samestat to Lib/genericpath.py
so all platforms share the same implementation.
2012-12-26 07:03:03 -06:00
Senthil Kumaran
2bf61abe02 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:47:09 -08:00
Senthil Kumaran
00679a7ee0 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:46:39 -08:00
Senthil Kumaran
303eb478f2 Issue #16702: Skip proxies for localhost in urllib2_localnet tests 2012-12-26 01:45:58 -08:00
Gregory P. Smith
a689e524e7 Test for issue16772 and redoes the previous fix to accept __index__-aware
objects as the base by using PyNumber_AsSsize_t similar to round().
2012-12-25 22:38:32 -08:00
Kristján Valur Jónsson
36852b7844 Issue #14574: Ignore socket errors raised when flushing a connection on close. 2012-12-25 22:46:32 +00:00
Andrew Svetlov
f7a17b48d7 Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +02:00
Andrew Svetlov
914ab8420e Add test coverage for os.removedirs (#16775) 2012-12-25 12:21:49 +02:00
Andrew Svetlov
34dcdee177 Add test coverage for os.removedirs (#16775) 2012-12-25 12:20:39 +02:00
Andrew Svetlov
405faed511 Add test coverage for os.removedirs (#16775) 2012-12-25 12:18:09 +02:00
Senthil Kumaran
750909e618 Fix issue16713 - tel url parsing with params 2012-12-24 14:01:48 -08:00
Senthil Kumaran
bd6667aae3 Fix issue16713 - tel url parsing with params 2012-12-24 14:01:13 -08:00
Senthil Kumaran
ed30199e78 Fix issue16713 - tel url parsing with params 2012-12-24 14:00:20 -08:00
Andrew Svetlov
2552bc0601 fix typo (#16720) 2012-12-24 21:47:24 +02:00
Andrew Svetlov
1d960fe4c4 Keep ref to ECHILD in local scope (#16650) 2012-12-24 20:08:53 +02:00
Andrew Svetlov
5b187ce700 Keep ref to ECHILD in local scope (#16650) 2012-12-24 20:06:52 +02:00
Andrew Svetlov
08bab07291 Keep ref to ECHILD in local scope (#16650) 2012-12-24 20:06:35 +02:00
Andrew Svetlov
8b33dd8e54 Use OESeeror instead of os.error (#16720)
Patch by Serhiy Storchaka.
2012-12-24 19:58:48 +02:00
Andrew Svetlov
6a7a49c631 Issue #16511: Use default IDLE width and height if config param is not valid.
Patch Serhiy Storchaka.
2012-12-24 13:17:11 +02:00
Andrew Svetlov
7174f0883c Issue #16511: Use default IDLE width and height if config param is not valid.
Patch Serhiy Storchaka.
2012-12-24 13:16:47 +02:00
Andrew Svetlov
8a495a48a5 Issue #16511: Use default IDLE width and height if config param is not valid.
Patch Serhiy Storchaka.
2012-12-24 13:15:43 +02:00
Brian Curtin
445ad997ab Fix #14470. Remove w9xpopen per PEP 11.
As stated in PEP 11, 3.4 removes code on Windows platforms where
COMSPEC points to command.com. The w9xpopen project in Visual Studio
was added to support that case, and there was a special case in subprocess
to cover that situation. This change removes the w9xpopen project from
the Visual Studio solution and removes any references to the w9xpopen
executable.
2012-12-23 16:53:21 -06:00
Senthil Kumaran
0a6b9eca68 merge from 3.2
Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly
2012-12-23 09:12:13 -08:00
Senthil Kumaran
41e66a26b0 Fix Issue15701 - HTTPError info method call raises AttributeError. Fix that to return headers correctly 2012-12-23 09:04:24 -08:00
Andrew Svetlov
2cd8ce4690 Issue #9856: Replace deprecation warinigs to raising TypeError in object.__format__
Patch by Florent Xicluna.
2012-12-23 14:27:17 +02:00
Andrew Svetlov
f347cf903c merge heads 2012-12-23 12:51:40 +02:00
Andrew Svetlov
4b61d0fa7f Issue #16045: add more unit tests for built-in int()
Patch by Chris Jerdonek.
2012-12-23 12:50:02 +02:00
Andrew Svetlov
8e42e8a0c6 Issue #16045: add more unit tests for built-in int()
Patch by Chris Jerdonek.
2012-12-23 12:49:33 +02:00
Brett Cannon
2909d6b47c merge with 3.3 2012-12-22 19:38:32 -05:00
Brett Cannon
73b969ec70 Issue #16752: Add a missing import to modulefinder.
Also fix Misc/ACKS to put part of it back in alphabetical order and
remove some duplicate names.

Patch by Berker Peksag.
2012-12-22 19:34:21 -05:00
Benjamin Peterson
4c05969fc4 merge 3.3 (#16597) 2012-12-20 11:55:16 -06:00
Benjamin Peterson
68623614f0 call close on the underlying stream even if flush raises (closes #16597)
Patch by Serhiy Storchaka.
2012-12-20 11:53:11 -06:00
Benjamin Peterson
7643c92cdd merge 3.3 (#16722) 2012-12-19 15:28:46 -06:00
Benjamin Peterson
5ff3f73d94 try to call __bytes__ before __index__ (closes #16722) 2012-12-19 15:27:41 -06:00
Andrew Svetlov
fd43b4d3e4 replace threw with raised (#16714) 2012-12-19 22:55:40 +02:00
Andrew Svetlov
1f415cf2c2 replace threw with raised (#16714) 2012-12-19 22:54:47 +02:00
Andrew Svetlov
7bd61cbc03 replace threw with raised (#16714) 2012-12-19 22:49:25 +02:00