]>
granicus.if.org Git - python/log
Benjamin Peterson [Mon, 20 May 2013 02:39:46 +0000 (19:39 -0700)]
merge 3.3
Benjamin Peterson [Mon, 20 May 2013 02:39:38 +0000 (19:39 -0700)]
add recursive repr test
Eli Bendersky [Mon, 20 May 2013 01:47:23 +0000 (18:47 -0700)]
Get rid of ugly code duplication for ElementTree.parse when the accelerator
is imported. Instead, ElementTree.parse can look for a special internal method
defined by the accelerator.
Eli Bendersky [Mon, 20 May 2013 00:49:54 +0000 (17:49 -0700)]
Add some testing to verify which module was imported in ET tests.
This is useful when mucking with import_fresh_module to either force or block
importing of the _elementtree accelerator. These tests in place provide an
immediate indication whether the accelerator was actually imported and overrode
the classes it should have.
Eli Bendersky [Mon, 20 May 2013 00:00:28 +0000 (17:00 -0700)]
Issue #17989: fix typo in error message
Eli Bendersky [Sun, 19 May 2013 23:59:59 +0000 (16:59 -0700)]
Issue #17989: fix typo in error message
Eli Bendersky [Sun, 19 May 2013 16:27:13 +0000 (09:27 -0700)]
normalize whitespace
Eli Bendersky [Sun, 19 May 2013 16:25:52 +0000 (09:25 -0700)]
Cleanup even more dead code
Eli Bendersky [Sun, 19 May 2013 16:24:43 +0000 (09:24 -0700)]
Cleanup more old ET library leftovers
Eli Bendersky [Sun, 19 May 2013 16:20:50 +0000 (09:20 -0700)]
Issue #17988: remove unused alias for Element and rename the used one
Renaming to _Element_Py for clarity and moving it to a more logical location.
_ElementInterface OTOH is unused and is therefore removed.
Close #17988
Eli Bendersky [Sun, 19 May 2013 16:09:24 +0000 (09:09 -0700)]
Clarify docs too: events can be any sequence (not that the C code supports it)
Eli Bendersky [Sun, 19 May 2013 16:01:49 +0000 (09:01 -0700)]
_elementtree.XMLParser._setevents should support any sequence, not just tuples
Also clean up some code around this
Antoine Pitrou [Sun, 19 May 2013 13:55:59 +0000 (15:55 +0200)]
Try to make test more reliable (saw some sporadic failures on buildbots)
Antoine Pitrou [Sun, 19 May 2013 13:55:40 +0000 (15:55 +0200)]
Try to make test more reliable (saw some sporadic failures on buildbots)
Antoine Pitrou [Sun, 19 May 2013 13:46:37 +0000 (15:46 +0200)]
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.
Antoine Pitrou [Sun, 19 May 2013 13:44:54 +0000 (15:44 +0200)]
Issue #11995: test_pydoc doesn't import all sys.path modules anymore.
Serhiy Storchaka [Sun, 19 May 2013 08:49:32 +0000 (11:49 +0300)]
Issue #17812: Fixed quadratic complexity of base64.b32encode().
Optimize base64.b32encode() and base64.b32decode() (speed up to 3x).
Serhiy Storchaka [Sun, 19 May 2013 08:41:15 +0000 (11:41 +0300)]
Issue #17812: Fixed quadratic complexity of base64.b32encode().
Antoine Pitrou [Sat, 18 May 2013 23:11:58 +0000 (01:11 +0200)]
Issue #17937: Try harder to collect cyclic garbage at shutdown.
Eli Bendersky [Sat, 18 May 2013 22:47:58 +0000 (15:47 -0700)]
Issue #17901: fix TreeBuilder construction for an explicit element_factory=None
Based on report and patch by Aaron Oakley.
Eli Bendersky [Sat, 18 May 2013 22:47:16 +0000 (15:47 -0700)]
Issue #17901: fix TreeBuilder construction for an explicit element_factory=None
Based on report and patch by Aaron Oakley.
Vinay Sajip [Sat, 18 May 2013 17:19:54 +0000 (10:19 -0700)]
Re-enabled skipped test.
Richard Oudkerk [Sat, 18 May 2013 17:13:16 +0000 (18:13 +0100)]
Merge.
Richard Oudkerk [Sat, 18 May 2013 17:11:30 +0000 (18:11 +0100)]
Close file before reopening to keep Windows happy in test_sax.
Richard Oudkerk [Sat, 18 May 2013 16:35:19 +0000 (17:35 +0100)]
Use PY_FORMAT_SIZE_T because Visual Studio does not understand %zd format.
Antoine Pitrou [Sat, 18 May 2013 15:59:12 +0000 (17:59 +0200)]
Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
Antoine Pitrou [Sat, 18 May 2013 15:56:42 +0000 (17:56 +0200)]
Issue #17980: Fix possible abuse of ssl.match_hostname() for denial of service using certificates with many wildcards (CVE-2013-2099).
Eli Bendersky [Sat, 18 May 2013 14:53:47 +0000 (07:53 -0700)]
Issue #17989: element_setattro returned incorrect error value.
This caused an exception to be raised later than expected.
Eli Bendersky [Sat, 18 May 2013 14:52:34 +0000 (07:52 -0700)]
Issue #17989: element_setattro returned incorrect error value.
This caused an exception to be raised later than expected.
Raymond Hettinger [Sat, 18 May 2013 07:05:20 +0000 (00:05 -0700)]
Undo the deprecation of _asdict().
Backed out changeset
c4ca39bece9d
Raymond Hettinger [Sat, 18 May 2013 00:14:27 +0000 (17:14 -0700)]
Deprecate nametuple._asdict()
Raymond Hettinger [Fri, 17 May 2013 23:43:58 +0000 (16:43 -0700)]
merge
Raymond Hettinger [Fri, 17 May 2013 23:43:14 +0000 (16:43 -0700)]
Update docstring for _asdict() to indicate it is obsolete.
Use the cleaner looking @property style for __dict__.
Move _replace() to be just after make() to indicate that
it is a core method on named tuples.
Benjamin Peterson [Fri, 17 May 2013 23:22:31 +0000 (18:22 -0500)]
rewrite the parsing of field names to be more consistent wrt recursive expansion
Benjamin Peterson [Fri, 17 May 2013 22:35:28 +0000 (17:35 -0500)]
merge 3.3
Victor Stinner [Fri, 17 May 2013 22:38:43 +0000 (00:38 +0200)]
FileIO.readall(): remove trailing space from an exception message
Richard Oudkerk [Fri, 17 May 2013 22:34:42 +0000 (23:34 +0100)]
Issue #15758: Fix FileIO.readall() so it no longer has O(n**2) complexity.
Benjamin Peterson [Fri, 17 May 2013 22:34:30 +0000 (17:34 -0500)]
only recursively expand in the format spec (closes #17644)
Benjamin Peterson [Fri, 17 May 2013 16:33:26 +0000 (11:33 -0500)]
reset __class__, so multiple runs don't fail (closes #17999)
Raymond Hettinger [Fri, 17 May 2013 10:24:54 +0000 (03:24 -0700)]
merge
Raymond Hettinger [Fri, 17 May 2013 10:01:13 +0000 (03:01 -0700)]
Issue #17563: Fix dict resize performance regression.
Raymond Hettinger [Fri, 17 May 2013 09:29:27 +0000 (02:29 -0700)]
merge
Raymond Hettinger [Fri, 17 May 2013 09:28:33 +0000 (02:28 -0700)]
Remove unnecessary exception handler.
Raymond Hettinger [Fri, 17 May 2013 09:24:18 +0000 (02:24 -0700)]
merge
Raymond Hettinger [Fri, 17 May 2013 09:23:16 +0000 (02:23 -0700)]
Ignore Mac OS X entries for .DS_Store
Serhiy Storchaka [Fri, 17 May 2013 07:49:44 +0000 (10:49 +0300)]
Issue #14596: The struct.Struct() objects now use more compact implementation.
Serhiy Storchaka [Fri, 17 May 2013 07:18:40 +0000 (10:18 +0300)]
Fix some bugs in Tools/scripts/abitype.py.
Serhiy Storchaka [Fri, 17 May 2013 07:17:43 +0000 (10:17 +0300)]
Fix some bugs in Tools/scripts/abitype.py.
Benjamin Peterson [Fri, 17 May 2013 00:38:48 +0000 (19:38 -0500)]
merge 3.3
Benjamin Peterson [Fri, 17 May 2013 00:38:22 +0000 (19:38 -0500)]
move definition to top of block
Victor Stinner [Thu, 16 May 2013 22:12:04 +0000 (00:12 +0200)]
Fix compilater warnings on Windows 64-bit
Victor Stinner [Thu, 16 May 2013 22:04:56 +0000 (00:04 +0200)]
Fix a compilater warning on Windows 64-bit
Vinay Sajip [Thu, 16 May 2013 21:57:02 +0000 (22:57 +0100)]
Issue #17981: Closed socket on error in SysLogHandler.
Victor Stinner [Thu, 16 May 2013 21:48:01 +0000 (23:48 +0200)]
Fix a compilater warning on Windows 64-bit
idx variable is used for a tuple indexn so use Py_ssize_t (not int).
Vinay Sajip [Thu, 16 May 2013 22:02:54 +0000 (23:02 +0100)]
Closes #17981: Merged fix from 3.3.
Benjamin Peterson [Thu, 16 May 2013 20:33:00 +0000 (15:33 -0500)]
make GCC complain about declarations not at the top of blocks
Benjamin Peterson [Thu, 16 May 2013 20:30:09 +0000 (15:30 -0500)]
merge 3.3
Benjamin Peterson [Thu, 16 May 2013 20:29:44 +0000 (15:29 -0500)]
C89 declaration compliance
Victor Stinner [Thu, 16 May 2013 20:26:29 +0000 (22:26 +0200)]
Issue #17964: Fix os.sysconf(): the return type of the C sysconf() function
is long, not int.
Victor Stinner [Thu, 16 May 2013 20:17:17 +0000 (22:17 +0200)]
fix compilation on Windows
Benjamin Peterson [Thu, 16 May 2013 19:37:25 +0000 (14:37 -0500)]
rather than passing locals to the class body, just execute the class body in the proper environment
Brian Curtin [Thu, 16 May 2013 17:03:40 +0000 (12:03 -0500)]
Merge with 3.3
Brian Curtin [Thu, 16 May 2013 16:59:29 +0000 (11:59 -0500)]
Add Nick Sloan for his contribution to #17732
Giampaolo Rodola' [Thu, 16 May 2013 13:21:53 +0000 (15:21 +0200)]
Issue #17992: Add timeouts to asyncore and asynchat tests so that they won't accidentally hang.
Giampaolo Rodola' [Thu, 16 May 2013 13:12:01 +0000 (15:12 +0200)]
ftplib tests: provide a global socket's TIMEOUT variable and use it everywhere so that failing tests won't accidentally hang
Benjamin Peterson [Wed, 15 May 2013 21:18:51 +0000 (16:18 -0500)]
null mege 3.3 with fix not applicable here
Benjamin Peterson [Wed, 15 May 2013 21:17:25 +0000 (16:17 -0500)]
complain about "global __class__" in a class body (closes #17983)
Benjamin Peterson [Wed, 15 May 2013 20:26:42 +0000 (15:26 -0500)]
hide the __class__ closure from the class body (#12370)
Georg Brandl [Wed, 15 May 2013 17:43:15 +0000 (19:43 +0200)]
null-merge from 3.3
Georg Brandl [Wed, 15 May 2013 17:42:39 +0000 (19:42 +0200)]
post-release update.
doko@ubuntu.com [Wed, 15 May 2013 16:08:03 +0000 (18:08 +0200)]
- Fix typos in the multiprocessing module.
doko@ubuntu.com [Wed, 15 May 2013 16:06:56 +0000 (18:06 +0200)]
- Fix typos in the multiprocessing module.
doko@ubuntu.com [Wed, 15 May 2013 16:04:50 +0000 (18:04 +0200)]
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
doko@ubuntu.com [Wed, 15 May 2013 16:02:13 +0000 (18:02 +0200)]
- Issue #17754: Make ctypes.util.find_library() independent of the locale.
doko@ubuntu.com [Wed, 15 May 2013 16:00:05 +0000 (18:00 +0200)]
Misc/NEWS: Add 3.3.3 section and move entries made after the 3.3.2 release
to the new section.
Benjamin Peterson [Wed, 15 May 2013 03:32:34 +0000 (22:32 -0500)]
null merge 3.3 from backport
Benjamin Peterson [Wed, 15 May 2013 03:31:26 +0000 (22:31 -0500)]
when arguments are cells clear the locals slot (backport of #17927)
Antoine Pitrou [Tue, 14 May 2013 18:37:52 +0000 (20:37 +0200)]
Backout
c89febab4648 following private feedback by Guido.
(Issue #17807: Generators can now be finalized even when they are part of a reference cycle)
Barry Warsaw [Tue, 14 May 2013 15:38:38 +0000 (11:38 -0400)]
- Issue #17977: The documentation for the cadefault argument's default value
in urllib.request.urlopen() is fixed to match the code.
Barry Warsaw [Tue, 14 May 2013 15:35:16 +0000 (11:35 -0400)]
- Issue #17977: The documentation for the cadefault argument's default value
in urllib.request.urlopen() is fixed to match the code.
Benjamin Peterson [Tue, 14 May 2013 00:56:35 +0000 (19:56 -0500)]
merge 3.3 (#17968)
Benjamin Peterson [Tue, 14 May 2013 00:55:40 +0000 (19:55 -0500)]
prevent double free in cleanup code (#17968)
Antoine Pitrou [Mon, 13 May 2013 20:35:38 +0000 (22:35 +0200)]
Fix ResourceWarnings in test_sax
Antoine Pitrou [Mon, 13 May 2013 20:34:21 +0000 (22:34 +0200)]
Fix ResourceWarnings in test_sax
Terry Jan Reedy [Mon, 13 May 2013 20:09:47 +0000 (16:09 -0400)]
Merge with 3.3
Terry Jan Reedy [Mon, 13 May 2013 20:07:44 +0000 (16:07 -0400)]
Silence unclosed open file ResourceWarning.
Terry Jan Reedy [Mon, 13 May 2013 19:44:30 +0000 (15:44 -0400)]
Complete 2 to 3 conversion
Terry Jan Reedy [Mon, 13 May 2013 19:39:24 +0000 (15:39 -0400)]
Complete 2 to 3 conversion
Antoine Pitrou [Mon, 13 May 2013 17:48:46 +0000 (19:48 +0200)]
Issue #17968: Fix memory leak in os.listxattr().
Antoine Pitrou [Mon, 13 May 2013 17:46:29 +0000 (19:46 +0200)]
Issue #17968: Fix memory leak in os.listxattr().
Benjamin Peterson [Mon, 13 May 2013 04:08:28 +0000 (23:08 -0500)]
remove support GCC PyArg_ParseTuple format patch, last seen in 2006
Benjamin Peterson [Mon, 13 May 2013 00:02:05 +0000 (19:02 -0500)]
merge 3.3
Benjamin Peterson [Mon, 13 May 2013 00:01:52 +0000 (19:01 -0500)]
use correct format code for exceptions
Benjamin Peterson [Sun, 12 May 2013 23:16:06 +0000 (18:16 -0500)]
when an argument is a cell, set the local copy to NULL (see #17927)
Georg Brandl [Sun, 12 May 2013 17:57:26 +0000 (19:57 +0200)]
merge with 3.3
Georg Brandl [Sun, 12 May 2013 17:55:55 +0000 (19:55 +0200)]
Added tag v3.3.2 for changeset
d047928ae3f6
Georg Brandl [Sun, 12 May 2013 17:50:34 +0000 (19:50 +0200)]
Closes #17962: Build with OpenSSL 1.0.1e on Windows.
Georg Brandl [Sun, 12 May 2013 17:44:21 +0000 (19:44 +0200)]
merge
Serhiy Storchaka [Sun, 12 May 2013 14:31:59 +0000 (17:31 +0300)]
Issue #17606: Fixed support of encoded byte strings in the XMLGenerator
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.
Serhiy Storchaka [Sun, 12 May 2013 14:31:16 +0000 (17:31 +0300)]
Issue #17606: Fixed support of encoded byte strings in the XMLGenerator
characters() and ignorableWhitespace() methods. Original patch by Sebastian
Ortiz Vasquez.