Commit graph

21046 commits

Author SHA1 Message Date
Sandro Tosi
e1b22edd23 Issue #14926: merge with 3.2 2012-06-02 19:40:20 +02:00
Sandro Tosi
29d09aa4dd Issue #14926: fix docstring highlight 2012-06-02 19:40:02 +02:00
Sandro Tosi
b4386d36f1 Issue #14814: minor spelling fixes 2012-06-02 17:14:22 +02:00
Victor Stinner
0dec1bfef9 Fix sporadic failure of test_time.test_process_time() on Windows
Use a threshold of 20 ms instead of 10 ms.
2012-06-01 22:45:23 +02:00
Hynek Schlawack
35db513187 #14814: Fix errror message creation in ipaddress.collapse_addresses 2012-06-01 20:12:17 +02:00
Nick Coghlan
77452fc121 Close #14969: Improve the handling of exception chaining in contextlib.ExitStack 2012-06-01 22:48:32 +10:00
Hynek Schlawack
c4b78a3e15 #14814: Remove 2.x's new-style classes syntax from ipaddress 2012-06-01 11:48:32 +02:00
Eli Bendersky
2b6b73e7e1 Issue #14007: implement doctype() method calling in XMLParser of _elementtree.
Includes exposing a doctype handler from expat through pyexpat.
2012-06-01 11:32:34 +03:00
Eli Bendersky
52467b167e Issue #14007: make XMLParser a real subclassable type exported from _elementtree. +cleanups 2012-06-01 07:13:08 +03:00
Hynek Schlawack
7e0229e90d #14814: Remove stale __hex__ method from ipaddress
Obsolete 2.x method.
2012-06-01 00:20:13 +02:00
R David Murray
1be413e366 Don't use metaclasses when class decorators can do the job.
Thanks to Nick Coghlan for pointing out that I'd forgotten about class
decorators.
2012-05-31 18:00:45 -04:00
Ned Deily
d3487be876 Issue #14962: merge 2012-05-31 09:58:08 -07:00
Ned Deily
8b2a56b89d Issue #14962: Update text coloring in IDLE shell window after changing
options.  Patch by Roger Serwy.
2012-05-31 09:17:29 -07:00
Nick Coghlan
a5bd2a18ce Close #14963: Use an iterative algorithm in contextlib.ExitStack.__exit__ (Patch by Alon Horev) 2012-06-01 00:00:38 +10:00
Nick Coghlan
c73e8c2830 Issue #14963: Added test cases for contextlib.ExitStack exception handling behaviour (Initial patch by Alon Horev) 2012-05-31 23:49:26 +10:00
Vinay Sajip
d70be9ba1f Added test skip under Windows, as not applicable there. 2012-05-31 12:37:04 +01:00
R David Murray
56517e5cb9 Make parameterized tests in email less hackish.
Or perhaps more hackish, depending on your perspective.  But at least this
way it is now possible to run the individual tests using the unittest CLI.
2012-05-30 21:53:40 -04:00
Georg Brandl
01d7058d6a Merge heads. 2012-05-30 22:04:57 +02:00
Georg Brandl
f0397b9953 Bump version to 3.3.0a4. 2012-05-30 22:04:31 +02:00
Georg Brandl
3539afd5c9 Update pydoc topics and fix new suspicious markup. 2012-05-30 22:03:20 +02:00
Eli Bendersky
48d358ba86 Issue #14007: implemented the 'element_factory' feature of TreeBuilder in
_elementtree, with a test.
2012-05-30 17:57:50 +03:00
R David Murray
bb75678003 #14796: fix failure of new calendar test on windows. 2012-05-30 08:10:54 -04:00
Victor Stinner
949d8c986e Close #14690: Use monotonic clock instead of system clock in the sched,
subprocess and trace modules.
2012-05-30 13:30:32 +02:00
Ned Deily
5e92a1ef5a Issue #14958: Change IDLE systax highlighting to recognize all string and
byte literals supported in Python 3.3.
2012-05-29 22:55:43 -07:00
Vinay Sajip
5e86eed33e Reapplied skip logic for test on Windows, which appears to have been lost during a merge. 2012-05-29 22:48:10 +01:00
Vinay Sajip
c1f0b53875 Updated test to reflect renamed file. 2012-05-29 22:29:50 +01:00
Ned Deily
01d63a6e06 Issue #10997: merge from 3.2 2012-05-29 10:51:38 -07:00
Ned Deily
3aee9416a0 Issue #10997: Prevent a duplicate entry in IDLE's "Recent Files" menu. 2012-05-29 10:43:36 -07:00
R David Murray
d0c8695617 #14796: improve calendar test coverage.
Patch by Oleg Plakhotnyuk.
2012-05-29 12:55:05 -04:00
R David Murray
026ba312d4 #10839: add new test file that was omitted from checkin 2012-05-29 12:31:11 -04:00
R David Murray
abfc37491c #10839: raise an error on add of duplicate unique headers in new email policies
This feature was supposed to be part of the initial email6 checkin, but it got
lost in my big refactoring.

In this patch I'm not providing an easy way to turn off the errors, but they
only happen when a header is added programmatically, and it is almost never
the right thing to do to allow the duplicate to be added.  An application that
needs to add duplicates of unique headers can create a policy subclass to
allow it.
2012-05-29 09:14:44 -04:00
Eli Bendersky
58d548dff1 Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and subclassable. 2012-05-29 15:45:16 +03:00
Richard Oudkerk
87ea780e8e Use Python 3.x-style keyword only arg in Array()
Previously a Python 2.x compatible hack was used for
multiprocessing.sharedctypes.Array().  Also the documented
signature was wrong.
2012-05-29 12:01:47 +01:00
Richard Oudkerk
1074a9294b Remove __getslice__, __setslice__, __delslice__ methods from proxies
Proxy classes in multiprocessing do not need these methods in Python 3.x.
2012-05-29 12:01:45 +01:00
Vinay Sajip
ecdc076695 Removed pysetup3.exe executable. 2012-05-29 11:12:43 +01:00
Hynek Schlawack
52209d3a1e #14835: Make plistlib output empty arrays & dicts like OS X
Patch by Sidney San Martín.
2012-05-29 12:04:54 +02:00
Eli Bendersky
737b173355 Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.
Add attrib keyword to Element and SubElement in _elementtree.
Patch developed with Ezio Melotti.
2012-05-29 06:02:56 +03:00
R David Murray
6bed342b58 Refactor test_email/test_pickleable and add tests for date headers 2012-05-28 21:09:04 -04:00
R David Murray
a7c9ddb59c Regularize test_email/test_headerregistry's references to policy. 2012-05-28 20:22:37 -04:00
R David Murray
d41595b920 Refactor test_email/test_defect_handling. 2012-05-28 20:14:10 -04:00
Richard Oudkerk
3e0a1eb889 Issue #14930: Make memoryview objects weakrefable. 2012-05-28 21:35:09 +01:00
Meador Inge
d102e04e4a Issue #9041: raised exception is misleading
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 14:47:53 -05:00
Meador Inge
031e25b0f7 Issue #9041: raised exception is misleading
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 14:21:16 -05:00
Vinay Sajip
ef4c5010e4 Fixed typo. 2012-05-28 17:01:17 +01:00
Vinay Sajip
382a7c0180 Tweaked tests to use launcher executable name on OS X. 2012-05-28 16:34:47 +01:00
Vinay Sajip
4469746878 Added python3 symlink; removed Distribute-related code, docs and comments; changed Mac OS X computation to determine framework builds. 2012-05-28 16:33:01 +01:00
Nick Coghlan
ab45e689be Merge from 3.2 2012-05-28 22:36:07 +10:00
Nick Coghlan
4b6045c30f Issue #14443: Tell rpmbuild to use the correct version of Python 2012-05-28 22:34:46 +10:00
Terry Jan Reedy
c6aa93cf22 Merge 3.2 #14929 2012-05-27 23:06:14 -04:00
Terry Jan Reedy
e1c5087802 Issue14929: Stop Idle 3.x from closing on Unicode decode errors when grepping.
Patch by Roger Serwy.
2012-05-27 22:56:49 -04:00