]> granicus.if.org Git - python/log
python
11 years ago#18020: improve html.escape speed by an order of magnitude. Patch by Matt Bryant.
Ezio Melotti [Sun, 7 Jul 2013 09:11:24 +0000 (11:11 +0200)]
#18020: improve html.escape speed by an order of magnitude.  Patch by Matt Bryant.

11 years ago(3.3->default) Issue #18377: Code cleanup in Python Launcher
Ronald Oussoren [Sun, 7 Jul 2013 07:54:08 +0000 (09:54 +0200)]
(3.3->default) Issue #18377: Code cleanup in Python Launcher

This changeset fixes a number of compiler warnings in the Python Launcher
binary for OSX. It also cleans up whitespace usage in those sources.

11 years agoIssue #18377: Code cleanup in Python Launcher
Ronald Oussoren [Sun, 7 Jul 2013 07:53:08 +0000 (09:53 +0200)]
Issue #18377: Code cleanup in Python Launcher

This changeset fixes a number of compiler warnings in the Python Launcher
binary for OSX. It also cleans up whitespace usage in those sources.

11 years ago(3.3->default) Cleanup of documentation change from #17860
Ronald Oussoren [Sun, 7 Jul 2013 07:28:01 +0000 (09:28 +0200)]
(3.3->default) Cleanup of documentation change from #17860

Reformulated the textual change, and applied it to the docstring as well.

11 years agoCleanup of documentation change from #17860
Ronald Oussoren [Sun, 7 Jul 2013 07:26:45 +0000 (09:26 +0200)]
Cleanup of documentation change from #17860

Reformulated the textual change, and applied it to the docstring as well.

11 years agomerge
Raymond Hettinger [Sun, 7 Jul 2013 03:50:01 +0000 (17:50 -1000)]
merge

11 years agoImprove variable names in deque_count()
Raymond Hettinger [Sun, 7 Jul 2013 03:49:06 +0000 (17:49 -1000)]
Improve variable names in deque_count()

11 years agoIssue #3329: Fix _PyObject_ArenaVirtualFree()
Victor Stinner [Sun, 7 Jul 2013 01:06:16 +0000 (03:06 +0200)]
Issue #3329: Fix _PyObject_ArenaVirtualFree()

According to VirtualFree() documentation, the size must be zero if the "free
type" is MEM_RELEASE.

11 years agoIssue #17206: On Windows, increase the stack size from 2 MB to 4.2 MB to fix
Victor Stinner [Sun, 7 Jul 2013 00:49:07 +0000 (02:49 +0200)]
Issue #17206: On Windows, increase the stack size from 2 MB to 4.2 MB to fix
a stack overflow in the marshal module (fix a crash in test_marshal).
Patch written by Jeremy Kloth.

11 years agoIssue #3329: Implement the PEP 445
Victor Stinner [Sun, 7 Jul 2013 00:05:46 +0000 (02:05 +0200)]
Issue #3329: Implement the PEP 445

Add new enum:

* PyMemAllocatorDomain

Add new structures:

* PyMemAllocator
* PyObjectArenaAllocator

Add new functions:

* PyMem_RawMalloc(), PyMem_RawRealloc(), PyMem_RawFree()
* PyMem_GetAllocator(), PyMem_SetAllocator()
* PyObject_GetArenaAllocator(), PyObject_SetArenaAllocator()
* PyMem_SetupDebugHooks()

Changes:

* PyMem_Malloc()/PyObject_Realloc() now always call malloc()/realloc(), instead
  of calling PyObject_Malloc()/PyObject_Realloc() in debug mode.
* PyObject_Malloc()/PyObject_Realloc() now falls back to
  PyMem_Malloc()/PyMem_Realloc() for allocations larger than 512 bytes.
* Redesign debug checks on memory block allocators as hooks, instead of using C
  macros

11 years agoApply the PyObject_VAR_HEAD and Py_SIZE macros
Raymond Hettinger [Sat, 6 Jul 2013 23:01:13 +0000 (13:01 -1000)]
Apply the PyObject_VAR_HEAD and Py_SIZE macros
to be consistent with practices in other modules.

11 years agomerge
Brett Cannon [Sat, 6 Jul 2013 22:05:02 +0000 (18:05 -0400)]
merge

11 years agomerge for issue #18351.
Brett Cannon [Sat, 6 Jul 2013 22:04:41 +0000 (18:04 -0400)]
merge for issue #18351.

11 years agoRefactor deque_traverse().
Raymond Hettinger [Sat, 6 Jul 2013 21:58:09 +0000 (11:58 -1000)]
Refactor deque_traverse().

Hoist conditional expression out of the loop.
Use rightblock as the guard instead of checking for NULL.

11 years agoIssue #18351: Fix various issues with
Brett Cannon [Sat, 6 Jul 2013 21:56:43 +0000 (17:56 -0400)]
Issue #18351: Fix various issues with
importlib._bootstrap._get_sourcefile().

Thanks to its only use by the C API, it was never properly tested
until now.

Thanks to Neal Norwitz for discovering the bug and Madison May for the patch.

11 years agoRemove unnecessary branches from count() and reverse().
Raymond Hettinger [Sat, 6 Jul 2013 19:07:06 +0000 (09:07 -1000)]
Remove unnecessary branches from count() and reverse().

11 years agoIssue #18364: Stop using the ImportError._not_found hack.
Brett Cannon [Sat, 6 Jul 2013 18:48:18 +0000 (14:48 -0400)]
Issue #18364: Stop using the ImportError._not_found hack.

The private attribute was leaking out of importlib and led to at least
one person noticing it. Switch to another hack which won't leak
outside of importlib and is nearly as robust.

11 years ago#18380: merge with 3.3.
Ezio Melotti [Sat, 6 Jul 2013 15:17:45 +0000 (17:17 +0200)]
#18380: merge with 3.3.

11 years ago#18380: pass regex flags to the right argument. Patch by Valentina Mukhamedzhanova.
Ezio Melotti [Sat, 6 Jul 2013 15:16:04 +0000 (17:16 +0200)]
#18380: pass regex flags to the right argument.  Patch by Valentina Mukhamedzhanova.

11 years agotest_ftplib: silence a BytesWarning when checking TypeError
Florent Xicluna [Sat, 6 Jul 2013 13:08:29 +0000 (15:08 +0200)]
test_ftplib: silence a BytesWarning when checking TypeError

11 years agotest_ftplib: silence a BytesWarning when checking TypeError
Florent Xicluna [Sat, 6 Jul 2013 13:08:21 +0000 (15:08 +0200)]
test_ftplib: silence a BytesWarning when checking TypeError

11 years ago(3.3->default) Issue #12990: The "Python Launcher" on OSX could not launch python...
Ronald Oussoren [Sat, 6 Jul 2013 11:25:44 +0000 (13:25 +0200)]
(3.3->default) Issue #12990: The "Python Launcher" on OSX could not launch python scripts that have paths that include wide characters.

11 years agoIssue #12990: The "Python Launcher" on OSX could not launch python scripts that have...
Ronald Oussoren [Sat, 6 Jul 2013 11:20:57 +0000 (13:20 +0200)]
Issue #12990: The "Python Launcher" on OSX could not launch python scripts that have paths that include wide characters.

11 years agoIssue #18375: merge with 3.3
Florent Xicluna [Sat, 6 Jul 2013 10:27:50 +0000 (12:27 +0200)]
Issue #18375: merge with 3.3

11 years agoIssue #18375: Assume --randomize when --randseed is used for running the testsuite.
Florent Xicluna [Sat, 6 Jul 2013 10:25:52 +0000 (12:25 +0200)]
Issue #18375: Assume --randomize when --randseed is used for running the testsuite.

11 years ago(3.3->default) Issue #17860: explicitly mention that std* streams are opened in binar...
Ronald Oussoren [Sat, 6 Jul 2013 08:25:04 +0000 (10:25 +0200)]
(3.3->default) Issue #17860: explicitly mention that std* streams are opened in binary mode by default.

The documentation does mention that the streams are opened in text mode
when univeral_newlines is true, but not that that they are opened in
binary mode when that argument is false and that seems to confuse at
least some users.

11 years agoIssue #17860: explicitly mention that std* streams are opened in binary mode by default.
Ronald Oussoren [Sat, 6 Jul 2013 08:23:59 +0000 (10:23 +0200)]
Issue #17860: explicitly mention that std* streams are opened in binary mode by default.

The documentation does mention that the streams are opened in text mode
when univeral_newlines is true, but not that that they are opened in
binary mode when that argument is false and that seems to confuse at
least some users.

11 years agoSpeed-up deque indexing by changing the deque block length to a power of two.
Raymond Hettinger [Sat, 6 Jul 2013 04:05:29 +0000 (18:05 -1000)]
Speed-up deque indexing by changing the deque block length to a power of two.

The division and modulo calculation in deque_item() can be compiled
to fast bitwise operations when the BLOCKLEN is a power of two.

Timing before:

 ~/cpython $ py -m timeit -r7 -s 'from collections import deque' -s 'd=deque(range(10))' 'd[5]'
10000000 loops, best of 7: 0.0627 usec per loop

Timing after:

~/cpython $ py -m timeit -r7 -s 'from collections import deque' -s 'd=deque(range(10))' 'd[5]'
10000000 loops, best of 7: 0.0581 usec per loop

11 years agoIssue #18347: ElementTree's html serializer now preserves the case of closing tags.
Christian Heimes [Thu, 4 Jul 2013 23:40:52 +0000 (01:40 +0200)]
Issue #18347: ElementTree's html serializer now preserves the case of closing tags.

11 years agoIssue #18347: ElementTree's html serializer now preserves the case of closing tags.
Christian Heimes [Thu, 4 Jul 2013 23:39:49 +0000 (01:39 +0200)]
Issue #18347: ElementTree's html serializer now preserves the case of closing tags.

11 years agoIssue #15767: Excise the remaining instances of ModuleNotFoundError
Brett Cannon [Thu, 4 Jul 2013 22:16:15 +0000 (18:16 -0400)]
Issue #15767: Excise the remaining instances of ModuleNotFoundError

11 years agoRemove dead code in test_exceptions.
Brett Cannon [Thu, 4 Jul 2013 22:04:20 +0000 (18:04 -0400)]
Remove dead code in test_exceptions.

11 years agoMove test_import over to unittest.main().
Brett Cannon [Thu, 4 Jul 2013 22:03:57 +0000 (18:03 -0400)]
Move test_import over to unittest.main().

11 years agoIssue #15767: back out 8a0ed9f63c6e, finishing the removal of
Brett Cannon [Thu, 4 Jul 2013 21:51:50 +0000 (17:51 -0400)]
Issue #15767: back out 8a0ed9f63c6e, finishing the removal of
ModuleNotFoundError.

11 years agoIssue #15767: Revert 3a50025f1900 for ModuleNotFoundError
Brett Cannon [Thu, 4 Jul 2013 21:48:16 +0000 (17:48 -0400)]
Issue #15767: Revert 3a50025f1900 for ModuleNotFoundError

11 years agoIssue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError.
Brett Cannon [Thu, 4 Jul 2013 21:44:08 +0000 (17:44 -0400)]
Issue #15767: Back out 8d28d44f3a9a related to ModuleNotFoundError.

11 years agoIssue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
Brett Cannon [Thu, 4 Jul 2013 21:43:24 +0000 (17:43 -0400)]
Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)

11 years agoConsolidate tests section.
Antoine Pitrou [Thu, 4 Jul 2013 19:06:12 +0000 (21:06 +0200)]
Consolidate tests section.

11 years agoIssue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé.
Antoine Pitrou [Thu, 4 Jul 2013 19:05:30 +0000 (21:05 +0200)]
Issue #11185: Fix test_wait4 under AIX.  Patch by Sébastien Sablé.

11 years agoIssue #11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé.
Antoine Pitrou [Thu, 4 Jul 2013 19:03:10 +0000 (21:03 +0200)]
Issue #11185: Fix test_wait4 under AIX.  Patch by Sébastien Sablé.

11 years ago(Merge 3.3) test_time.test_monotonic(): use a longer sleep to try to make the test...
Victor Stinner [Wed, 3 Jul 2013 21:07:59 +0000 (23:07 +0200)]
(Merge 3.3) test_time.test_monotonic(): use a longer sleep to try to make the test more reliable

11 years agotest_time.test_monotonic(): use a longer sleep to try to make the test more reliable
Victor Stinner [Wed, 3 Jul 2013 21:07:37 +0000 (23:07 +0200)]
test_time.test_monotonic(): use a longer sleep to try to make the test more reliable

11 years ago(Merge 3.3) test_faulthandler: skip test_read_null() on AIX
Victor Stinner [Wed, 3 Jul 2013 20:35:39 +0000 (22:35 +0200)]
(Merge 3.3) test_faulthandler: skip test_read_null() on AIX

AIX maps the first page of memory at address zero as valid, read-only.  Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.

11 years agotest_faulthandler: skip test_read_null() on AIX
Victor Stinner [Wed, 3 Jul 2013 20:29:42 +0000 (22:29 +0200)]
test_faulthandler: skip test_read_null() on AIX

AIX maps the first page of memory at address zero as valid, read-only.  Reading
NULL is not a fault on AIX. This is utilized by IBM compiler optimizations.
One speculatively can indirect through a pointer which may be null without
first testing if null and defer the test before using the value.

11 years ago#18312: merge from 3.3.
Eric V. Smith [Tue, 2 Jul 2013 13:07:53 +0000 (09:07 -0400)]
#18312: merge from 3.3.

11 years agoCloses #18312: 'make distclean' no longer deletes files in dot-directories.
Eric V. Smith [Tue, 2 Jul 2013 13:06:54 +0000 (09:06 -0400)]
Closes #18312: 'make distclean' no longer deletes files in dot-directories.

11 years agoIssue #17261: Ensure multiprocessing's proxies use proper address.
Richard Oudkerk [Tue, 2 Jul 2013 12:38:58 +0000 (13:38 +0100)]
Issue #17261: Ensure multiprocessing's proxies use proper address.

11 years agoIssue #17261: Ensure multiprocessing's proxies use proper address.
Richard Oudkerk [Tue, 2 Jul 2013 12:37:43 +0000 (13:37 +0100)]
Issue #17261: Ensure multiprocessing's proxies use proper address.

11 years agoIssue #14206: Clarify docs for Queue.join_cancel_thread().
Richard Oudkerk [Tue, 2 Jul 2013 12:01:31 +0000 (13:01 +0100)]
Issue #14206: Clarify docs for Queue.join_cancel_thread().

11 years agoIssue #14206: Clarify docs for Queue.join_cancel_thread().
Richard Oudkerk [Tue, 2 Jul 2013 11:59:55 +0000 (12:59 +0100)]
Issue #14206: Clarify docs for Queue.join_cancel_thread().

11 years agoIssue #17273: Clarify that pool methods can only be used by parent process.
Richard Oudkerk [Tue, 2 Jul 2013 11:41:00 +0000 (12:41 +0100)]
Issue #17273: Clarify that pool methods can only be used by parent process.

11 years agoIssue #17273: Clarify that pool methods can only be used by parent process.
Richard Oudkerk [Tue, 2 Jul 2013 11:32:00 +0000 (12:32 +0100)]
Issue #17273: Clarify that pool methods can only be used by parent process.

11 years ago(Merge 3.3) Issue #18343: faulthandler.register() now keeps the previous signal
Victor Stinner [Mon, 1 Jul 2013 22:17:14 +0000 (00:17 +0200)]
(Merge 3.3) Issue #18343: faulthandler.register() now keeps the previous signal
handler when the function is called twice, so faulthandler.unregister()
restores correctly the original signal handler.

11 years agoIssue #18343: faulthandler.register() now keeps the previous signal handler
Victor Stinner [Mon, 1 Jul 2013 22:14:56 +0000 (00:14 +0200)]
Issue #18343: faulthandler.register() now keeps the previous signal handler
when the function is called twice, so faulthandler.unregister() restores
correctly the original signal handler.

11 years agoIssue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
Christian Heimes [Mon, 1 Jul 2013 21:43:09 +0000 (23:43 +0200)]
Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
tstate is first removed from TLS and then deallocated.
CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE)
 use_after_free: Using freed pointer tstate.

11 years agoIssue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
Christian Heimes [Mon, 1 Jul 2013 21:42:28 +0000 (23:42 +0200)]
Issue #18328: Reorder ops in PyThreadState_Delete*() functions. Now the
tstate is first removed from TLS and then deallocated.
CID 1019639 (#1 of 1): Use after free (USE_AFTER_FREE)
 use_after_free: Using freed pointer tstate.

11 years agoIssue #18339: use with self.assertRaises() to make test case more readable
Christian Heimes [Mon, 1 Jul 2013 21:00:22 +0000 (23:00 +0200)]
Issue #18339: use with self.assertRaises() to make test case more readable

11 years agoIssue #18339: use with self.assertRaises() to make test case more readable
Christian Heimes [Mon, 1 Jul 2013 21:00:13 +0000 (23:00 +0200)]
Issue #18339: use with self.assertRaises() to make test case more readable

11 years agoIssue #17097: Merge.
Richard Oudkerk [Mon, 1 Jul 2013 18:10:39 +0000 (19:10 +0100)]
Issue #17097: Merge.

11 years agoIssue #17097: Make multiprocessing ignore EINTR.
Richard Oudkerk [Mon, 1 Jul 2013 17:59:26 +0000 (18:59 +0100)]
Issue #17097: Make multiprocessing ignore EINTR.

11 years agoMerge with current default
Łukasz Langa [Mon, 1 Jul 2013 14:03:17 +0000 (16:03 +0200)]
Merge with current default

11 years agoIssue #18244: Adopt C3-based linearization in functools.singledispatch for improved...
Łukasz Langa [Mon, 1 Jul 2013 14:00:38 +0000 (16:00 +0200)]
Issue #18244: Adopt C3-based linearization in functools.singledispatch for improved ABC support

11 years agoSingular form just like the other error message.
Christian Heimes [Mon, 1 Jul 2013 13:23:48 +0000 (15:23 +0200)]
Singular form just like the other error message.

11 years agoSingular form just like the other error message.
Christian Heimes [Mon, 1 Jul 2013 13:23:39 +0000 (15:23 +0200)]
Singular form just like the other error message.

11 years agoIssue #18339: Negative ints keys in unpickler.memo dict no longer cause a
Christian Heimes [Mon, 1 Jul 2013 13:18:49 +0000 (15:18 +0200)]
Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
segfault inside the _pickle C extension.

11 years agoIssue #18339: Negative ints keys in unpickler.memo dict no longer cause a
Christian Heimes [Mon, 1 Jul 2013 13:17:45 +0000 (15:17 +0200)]
Issue #18339: Negative ints keys in unpickler.memo dict no longer cause a
segfault inside the _pickle C extension.

11 years agoIssue 18240: The HMAC module is no longer restricted to bytes and accepts
Christian Heimes [Mon, 1 Jul 2013 11:08:42 +0000 (13:08 +0200)]
Issue 18240: The HMAC module is no longer restricted to bytes and accepts
any bytes-like object, e.g. memoryview. Original patch by Jonas Borgström.

11 years ago(merge) Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Terry Jan Reedy [Mon, 1 Jul 2013 04:52:18 +0000 (00:52 -0400)]
(merge) Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.

11 years agoIssue #7136: In the Idle File menu, "New Window" is renamed "New File".
Terry Jan Reedy [Mon, 1 Jul 2013 04:42:52 +0000 (00:42 -0400)]
Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.

11 years agoMerge with 3.3
Terry Jan Reedy [Sun, 30 Jun 2013 22:37:51 +0000 (18:37 -0400)]
Merge with 3.3

11 years agoIssue #18189: add test_delegator for Idle Delegator class.
Terry Jan Reedy [Sun, 30 Jun 2013 22:37:05 +0000 (18:37 -0400)]
Issue #18189: add test_delegator for Idle Delegator class.
Also change private dict used as a set to a set.

11 years agoIssue #18224: Updated test.
Vinay Sajip [Sun, 30 Jun 2013 21:11:46 +0000 (22:11 +0100)]
Issue #18224: Updated test.

11 years agoIssue #18224: Updated test.
Vinay Sajip [Sun, 30 Jun 2013 21:11:10 +0000 (22:11 +0100)]
Issue #18224: Updated test.

11 years agoCloses #18224: Removed pydoc script from created venv, as it causes problems on Windo...
Vinay Sajip [Sun, 30 Jun 2013 21:08:27 +0000 (22:08 +0100)]
Closes #18224: Removed pydoc script from created venv, as it causes problems on Windows and adds no value over and above python -m pydoc ...

11 years agoIssue #18224: Removed pydoc script from created venv, as it causes problems on Window...
Vinay Sajip [Sun, 30 Jun 2013 21:06:52 +0000 (22:06 +0100)]
Issue #18224: Removed pydoc script from created venv, as it causes problems on Windows and adds no value over and above python -m pydoc ...

11 years agoMerge with 3.3
Terry Jan Reedy [Sun, 30 Jun 2013 20:52:40 +0000 (16:52 -0400)]
Merge with 3.3

11 years agoIssue 18189: remove unused methods in idlelib.Delegator.Delegator.
Terry Jan Reedy [Sun, 30 Jun 2013 20:52:19 +0000 (16:52 -0400)]
Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.

11 years agoNull merge #18038: Use non-deprecated assert names in tests.
R David Murray [Sun, 30 Jun 2013 15:50:53 +0000 (11:50 -0400)]
Null merge #18038: Use non-deprecated assert names in tests.

Brett already fixed this in 3.4 in 4f7c25ab2ed2.

11 years ago#18038: Use non-deprecated assert names in tests.
R David Murray [Sun, 30 Jun 2013 15:46:32 +0000 (11:46 -0400)]
#18038: Use non-deprecated assert names in tests.

11 years agoMerge #18155: Regex-escape delimiter, in case it is a regex special char.
R David Murray [Sat, 29 Jun 2013 22:42:24 +0000 (18:42 -0400)]
Merge #18155: Regex-escape delimiter, in case it is a regex special char.

11 years ago#18155: Regex-escape delimiter, in case it is a regex special char.
R David Murray [Sat, 29 Jun 2013 22:40:53 +0000 (18:40 -0400)]
#18155: Regex-escape delimiter, in case it is a regex special char.

Patch by Vajrasky Kok, with slight modification to the tests by me.

11 years agoMerge with 3.3
Terry Jan Reedy [Sat, 29 Jun 2013 22:22:25 +0000 (18:22 -0400)]
Merge with 3.3

11 years agoIssue #18103: Update README.txt and test_idle to describe and run gui tests.
Terry Jan Reedy [Sat, 29 Jun 2013 22:22:02 +0000 (18:22 -0400)]
Issue #18103: Update README.txt and test_idle to describe and run gui tests.

11 years agoFix segfault in pyexpat.c caused by 84375
Christian Heimes [Sat, 29 Jun 2013 19:49:27 +0000 (21:49 +0200)]
Fix segfault in pyexpat.c caused by 84375
u can be NULL, use XDECREF

11 years agoFix resource leak in pickle module
Christian Heimes [Sat, 29 Jun 2013 19:37:34 +0000 (21:37 +0200)]
Fix resource leak in pickle module
CID 983309 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable unicode_str going out of scope leaks the storage it points to.

11 years agoFix ref leak in error case of unicode find, count, formatlong
Christian Heimes [Sat, 29 Jun 2013 19:33:36 +0000 (21:33 +0200)]
Fix ref leak in error case of unicode find, count, formatlong
CID 983315: Resource leak (RESOURCE_LEAK)
CID 983316: Resource leak (RESOURCE_LEAK)
CID 983317: Resource leak (RESOURCE_LEAK)

11 years agoFix ref leak in error case of unicode index
Christian Heimes [Sat, 29 Jun 2013 19:21:37 +0000 (21:21 +0200)]
Fix ref leak in error case of unicode index
CID 983319 (#1 of 2): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable substring going out of scope leaks the storage it points to.

11 years agoFix ref leak in error case of unicode rindex and rfind
Christian Heimes [Sat, 29 Jun 2013 19:17:34 +0000 (21:17 +0200)]
Fix ref leak in error case of unicode rindex and rfind
CID 983320: Resource leak (RESOURCE_LEAK)
CID 983321: Resource leak (RESOURCE_LEAK)
leaked_storage: Variable substring going out of scope leaks the storage it points to.

11 years agoFix resource leak in parser, free node ptr
Christian Heimes [Sat, 29 Jun 2013 19:03:51 +0000 (21:03 +0200)]
Fix resource leak in parser, free node ptr
CID 1028068 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable n going out of scope leaks the storage it points to.

11 years agoFix NULL ptr dereferencing in local_timezone(). nameo can be NULL
Christian Heimes [Sat, 29 Jun 2013 18:52:33 +0000 (20:52 +0200)]
Fix NULL ptr dereferencing in local_timezone(). nameo can be NULL
CID 1040362 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)
var_deref_op: Dereferencing null pointer _py_decref_tmp.

11 years agoFix memory leak in pyexpat PyUnknownEncodingHandler
Christian Heimes [Sat, 29 Jun 2013 18:43:13 +0000 (20:43 +0200)]
Fix memory leak in pyexpat PyUnknownEncodingHandler
CID 1040367 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable u going out of scope leaks the storage it points to.

11 years agoFix memory leak in endswith
Christian Heimes [Sat, 29 Jun 2013 18:41:06 +0000 (20:41 +0200)]
Fix memory leak in endswith
CID 1040368 (#1 of 1): Resource leak (RESOURCE_LEAK)
leaked_storage: Variable substring going out of scope leaks the storage it points to.

11 years agoMerge with 3.3
Terry Jan Reedy [Sat, 29 Jun 2013 17:16:17 +0000 (13:16 -0400)]
Merge with 3.3

11 years agoIssue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
Terry Jan Reedy [Sat, 29 Jun 2013 17:15:43 +0000 (13:15 -0400)]
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.

11 years agoIssue #18322: fix some test_stat nits.
Antoine Pitrou [Sat, 29 Jun 2013 10:58:57 +0000 (12:58 +0200)]
Issue #18322: fix some test_stat nits.

11 years agoMerge with 3.3
Terry Jan Reedy [Sat, 29 Jun 2013 03:52:05 +0000 (23:52 -0400)]
Merge with 3.3

11 years agoIssue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
Terry Jan Reedy [Sat, 29 Jun 2013 03:50:12 +0000 (23:50 -0400)]
Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.

11 years agoIssue #18081: Back out temporary changeset, 2a9e1eb3719c, to merge new patch.
Terry Jan Reedy [Sat, 29 Jun 2013 03:47:40 +0000 (23:47 -0400)]
Issue #18081: Back out temporary changeset, 2a9e1eb3719c, to merge new patch.
If buildbots run before next push, test_logging will (temporarily) fail.

11 years agoAdded rationale for defaulting to 1 in the functional API.
Ethan Furman [Sat, 29 Jun 2013 02:37:17 +0000 (19:37 -0700)]
Added rationale for defaulting to 1 in the functional API.

11 years agoMerge with 3.3
Terry Jan Reedy [Fri, 28 Jun 2013 22:59:52 +0000 (18:59 -0400)]
Merge with 3.3