]>
granicus.if.org Git - python/log
Benjamin Peterson [Sun, 21 Jul 2013 20:26:13 +0000 (13:26 -0700)]
let's not return NULL from functions that should return ints
Christian Heimes [Sun, 21 Jul 2013 14:24:51 +0000 (16:24 +0200)]
Issue #18514: Fix unreachable Py_DECREF() call in PyCData_FromBaseObj()
Christian Heimes [Sun, 21 Jul 2013 14:19:02 +0000 (16:19 +0200)]
Fix reference and memory leaks in _freeze_importlib
Christian Heimes [Sun, 21 Jul 2013 00:12:35 +0000 (02:12 +0200)]
Check return value of lseek() in _Py_DisplaySourceLine().
Also use portable SEEK_SET instead of 0.
CID
1040639
Christian Heimes [Sun, 21 Jul 2013 00:04:35 +0000 (02:04 +0200)]
Propagate error when PyByteArray_Resize() fails in bytearray_translate()
CID 715334
Christian Heimes [Sat, 20 Jul 2013 23:54:26 +0000 (01:54 +0200)]
merge
Christian Heimes [Sat, 20 Jul 2013 23:53:10 +0000 (01:53 +0200)]
Check return value of PyObject_AsFileDescriptor() in _Py_DisplaySourceLine() for error
CID 486768
Ned Deily [Sat, 20 Jul 2013 22:06:26 +0000 (15:06 -0700)]
Issue #17532: Prevent exception when changing key sets if Options menu is empty.
Christian Heimes [Sat, 20 Jul 2013 20:54:25 +0000 (22:54 +0200)]
Check return value of PyEval_GetGlobals() for NULL
CID 486814
Christian Heimes [Sat, 20 Jul 2013 20:41:58 +0000 (22:41 +0200)]
Check return value of flush_character_buffer()
CID 486663
Christian Heimes [Sat, 20 Jul 2013 20:17:55 +0000 (22:17 +0200)]
Check return value of fstat() in _PyImport_GetDynLoadFunc()
CID 486250
Mark Dickinson [Sat, 20 Jul 2013 16:59:13 +0000 (17:59 +0100)]
Issue #18513: Add workaround for OS X 10.8 cexp bug that leads to wrong cmath.rect(0.0,-0.0) results.
Christian Heimes [Sat, 20 Jul 2013 13:12:09 +0000 (15:12 +0200)]
Add missing check of PyDict_Update()'s return value in _elementtree.c
CID 719637
Christian Heimes [Sat, 20 Jul 2013 13:01:26 +0000 (15:01 +0200)]
Add missing check of PyDict_SetItem()'s return value
CID 486659
Christian Heimes [Sat, 20 Jul 2013 12:57:16 +0000 (14:57 +0200)]
Check return value of PyType_Ready(&EncodingMapType)
CID 486654
Christian Heimes [Sat, 20 Jul 2013 12:51:53 +0000 (14:51 +0200)]
Add missing check of PyDict_SetItem()'s return value in _PyImport_FindExtensionObject()
CID 486649
Christian Heimes [Sat, 20 Jul 2013 12:48:10 +0000 (14:48 +0200)]
Add missing check of PyDict_SetItem()'s return value in PyEval_EvalCodeEx()
CID 486647
Richard Oudkerk [Fri, 19 Jul 2013 21:53:42 +0000 (22:53 +0100)]
Prevent dangling threads/process warning for test_multiprocessing.
Ronald Oussoren [Fri, 19 Jul 2013 09:11:25 +0000 (11:11 +0200)]
#18480: Add missing PyType_Ready call to _elementtree extension
Victor Stinner [Thu, 18 Jul 2013 21:57:35 +0000 (23:57 +0200)]
Fix posix_chflags(): return_value was uninitialized when follow_symlinks=False
whereas the fchmodat() function is not avaialble.
Serhiy Storchaka [Wed, 17 Jul 2013 10:42:24 +0000 (13:42 +0300)]
Issue #18266: test_largefile now works with unittest test discovery and
supports running only selected tests. Patch by Zachary Ware.
Serhiy Storchaka [Wed, 17 Jul 2013 10:23:45 +0000 (13:23 +0300)]
Issue #17767: test_locale now works with unittest test discovery.
Original patch by Zachary Ware.
Serhiy Storchaka [Tue, 16 Jul 2013 19:12:03 +0000 (22:12 +0300)]
Issue #18448: Fix a typo in Tools/demo/eiffel.py.
Serhiy Storchaka [Tue, 16 Jul 2013 18:55:36 +0000 (21:55 +0300)]
Issue #18457: Fixed saving of formulas and complex numbers in Tools/demo/ss1.py.
Useed context managers for file I/O.
Removed out-of-dated code and misleading comments.
R David Murray [Tue, 16 Jul 2013 15:45:31 +0000 (11:45 -0400)]
Closes #18475: add unittest.main() to test_email/test_inversions.
Patch by Vajrasky Kok.
Richard Oudkerk [Tue, 16 Jul 2013 14:33:41 +0000 (15:33 +0100)]
Issue #17778: Fix test discovery for test_multiprocessing. (Patch by
Zachary Ware.)
Benjamin Peterson [Tue, 16 Jul 2013 03:50:22 +0000 (20:50 -0700)]
move declaration to top of block
Benjamin Peterson [Tue, 16 Jul 2013 02:15:34 +0000 (19:15 -0700)]
check the return value of new_string() (closes #18470)
Ned Deily [Tue, 16 Jul 2013 02:08:13 +0000 (19:08 -0700)]
Issue #18471: Fix typo in heapq documentation (reported by François Pinard).
Barry Warsaw [Mon, 15 Jul 2013 18:47:29 +0000 (14:47 -0400)]
- Issue #18440: Clarify that `hash()` can truncate the value returned from an
object's custom `__hash__()` method.
R David Murray [Mon, 15 Jul 2013 16:09:47 +0000 (12:09 -0400)]
Closes #18464: fix typo in test name.
Richard Oudkerk [Mon, 15 Jul 2013 15:05:22 +0000 (16:05 +0100)]
Issue #18344: Fix potential ref-leaks in _bufferedreader_read_all().
Serhiy Storchaka [Mon, 15 Jul 2013 09:34:17 +0000 (12:34 +0300)]
Issue #18449: Make Tools/demo/ss1.py work again on Python 3. Patch by
Févry Thibault.
Ned Deily [Sun, 14 Jul 2013 19:43:16 +0000 (12:43 -0700)]
Issue #18452: fix several "occurrence" typos (reported by Févry Thibault).
Raymond Hettinger [Sun, 14 Jul 2013 05:42:09 +0000 (22:42 -0700)]
Issue #18432: Fix unintended API change in the sched module
Terry Jan Reedy [Sat, 13 Jul 2013 08:05:42 +0000 (04:05 -0400)]
Issue #18365: convert buildbot errors to skips.
Terry Jan Reedy [Sat, 13 Jul 2013 06:34:43 +0000 (02:34 -0400)]
Issue #18279: Add tests for idlelib/RstripExtension.py. Original patch by
Phil Webster. With that available, modify RstripExtension.py to stop deleting
null slices, which caused a file to be marked as changed when it was not.
R David Murray [Sat, 13 Jul 2013 02:55:43 +0000 (22:55 -0400)]
#18437: fix comment typo.
Terry Jan Reedy [Sat, 13 Jul 2013 00:16:28 +0000 (20:16 -0400)]
Issue #18365: normalize whitespace
Terry Jan Reedy [Sat, 13 Jul 2013 00:10:23 +0000 (20:10 -0400)]
Issue #18365: Add mock Text class and test thereof versus tk.Text.
Based on patches by Todd.Rovito and Phil Webster.
R David Murray [Fri, 12 Jul 2013 21:43:11 +0000 (17:43 -0400)]
#18389: Clarify that relpath does not access the file system.
Initial patch by Madison May.
Vinay Sajip [Fri, 12 Jul 2013 20:52:51 +0000 (21:52 +0100)]
Issue #18433: Clarified venv documentation.
Vinay Sajip [Fri, 12 Jul 2013 20:44:35 +0000 (21:44 +0100)]
Issue #18434: Updated example script to tidy up resources.
Vinay Sajip [Fri, 12 Jul 2013 20:19:41 +0000 (21:19 +0100)]
Merged upstream changes.
Vinay Sajip [Fri, 12 Jul 2013 20:10:19 +0000 (21:10 +0100)]
Issue #18435: Replaced simple attribute container class Context with types.SimpleNamespace.
R David Murray [Fri, 12 Jul 2013 20:03:44 +0000 (16:03 -0400)]
Merge heads.
R David Murray [Fri, 12 Jul 2013 20:00:28 +0000 (16:00 -0400)]
#18431: Decode encoded words in atoms in new email parser.
There is more to be done here in terms of accepting RFC invalid
input that some mailers accept, but this covers the valid
RFC places where encoded words can occur in structured headers.
Vinay Sajip [Fri, 12 Jul 2013 19:54:25 +0000 (20:54 +0100)]
Issue #18434: Updated example script in venv docs to use setuptools rather than Distribute.
R David Murray [Thu, 11 Jul 2013 19:52:57 +0000 (15:52 -0400)]
#18044: Fix parsing of encoded words of the form =?utf8?q?=XX...?=
The problem was I was only checking for decimal digits after the third '?',
not for *hex* digits :(.
This changeset also fixes a couple of comment typos, deletes an unused
function relating to encoded word parsing, and removed an invalid
'if' test from the folding function that was revealed by the tests
written to validate this issue.
Serhiy Storchaka [Thu, 11 Jul 2013 19:20:47 +0000 (22:20 +0300)]
Issue #17872: Fix a segfault in marshal.load() when input stream returns
more bytes than requested.
Serhiy Storchaka [Thu, 11 Jul 2013 18:57:34 +0000 (21:57 +0300)]
Issue #18085: Add missed const modifier for some entries in refcounts.dat.
Serhiy Storchaka [Thu, 11 Jul 2013 17:34:47 +0000 (20:34 +0300)]
Issue #18101: Tcl.split() now process strings nested in a tuple as it
do with byte strings.
Added tests for Tcl.split() and Tcl.splitline().
R David Murray [Thu, 11 Jul 2013 16:28:40 +0000 (12:28 -0400)]
#17987: properly document support.captured_xxx.
Patch by Dmi Baranov.
Serhiy Storchaka [Thu, 11 Jul 2013 16:14:26 +0000 (19:14 +0300)]
Fix reference leaks introduced by the patch for issue #5308.
Serhiy Storchaka [Thu, 11 Jul 2013 15:26:13 +0000 (18:26 +0300)]
Issue #18336. Fix a link to StreamReader's read() method.
Christian Heimes [Thu, 11 Jul 2013 11:02:30 +0000 (13:02 +0200)]
Issue #18426: improve exception message. Courtesy of Amaury
Christian Heimes [Thu, 11 Jul 2013 09:22:21 +0000 (11:22 +0200)]
Issue #18426: Fix NULL pointer dereference in C extension import when
PyModule_GetDef() returns an error.
R David Murray [Wed, 10 Jul 2013 20:22:14 +0000 (16:22 -0400)]
#18424: PEP8ify the tense of the sum docstring.
R David Murray [Wed, 10 Jul 2013 14:57:39 +0000 (10:57 -0400)]
#18399: fix comment typo.
Patch by Andrew Rowe.
Charles-François Natali [Tue, 9 Jul 2013 17:15:43 +0000 (19:15 +0200)]
Issue #18308: don't take the scope ID into account when comparing IPv6
addresses.
Christian Heimes [Tue, 9 Jul 2013 12:30:04 +0000 (14:30 +0200)]
use $(LN) makefile variable instead of ln
Ezio Melotti [Mon, 8 Jul 2013 15:52:54 +0000 (17:52 +0200)]
#18403: fix an off-by-one typo noticed by Xue Fuqiao.
Ezio Melotti [Mon, 8 Jul 2013 15:48:29 +0000 (17:48 +0200)]
Add a couple of tests for str.center with non-ASCII chars.
Ezio Melotti [Sun, 7 Jul 2013 11:15:08 +0000 (13:15 +0200)]
#17198: Fix a NameError in the dbm module. Patch by Valentina Mukhamedzhanova.
Florent Xicluna [Sun, 7 Jul 2013 10:44:28 +0000 (12:44 +0200)]
Issue #18013: Fix cgi.FieldStorage to parse the W3C sample form.
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.
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.
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.
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.
Florent Xicluna [Sat, 6 Jul 2013 13:08:21 +0000 (15:08 +0200)]
test_ftplib: silence a BytesWarning when checking TypeError
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.
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.
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.
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.
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é.
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
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.
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.
Richard Oudkerk [Tue, 2 Jul 2013 12:37:43 +0000 (13:37 +0100)]
Issue #17261: Ensure multiprocessing's proxies use proper address.
Richard Oudkerk [Tue, 2 Jul 2013 11:59:55 +0000 (12:59 +0100)]
Issue #14206: Clarify docs for Queue.join_cancel_thread().
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.
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.
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.
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
Richard Oudkerk [Mon, 1 Jul 2013 17:59:26 +0000 (18:59 +0100)]
Issue #17097: Make multiprocessing ignore EINTR.
Christian Heimes [Mon, 1 Jul 2013 13:23:39 +0000 (15:23 +0200)]
Singular form just like the other error message.
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.
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.
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.
Vinay Sajip [Sun, 30 Jun 2013 21:11:10 +0000 (22:11 +0100)]
Issue #18224: Updated test.
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 ...
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.
R David Murray [Sun, 30 Jun 2013 15:46:32 +0000 (11:46 -0400)]
#18038: Use non-deprecated assert names in tests.
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.
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.
Terry Jan Reedy [Sat, 29 Jun 2013 17:15:43 +0000 (13:15 -0400)]
Issue #18237: Fix assertRaisesRegexp error caought by Jeff Tratner.
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.
Terry Jan Reedy [Fri, 28 Jun 2013 22:59:28 +0000 (18:59 -0400)]
Issue #18315: Improve fileinput docs by adding 'bufsize' where missing and
replacing redundant signature in input() docstring with one-line summary.
Original patch by Terrel Shumway.
R David Murray [Fri, 28 Jun 2013 19:08:03 +0000 (15:08 -0400)]
#14360: Add news item.
R David Murray [Thu, 27 Jun 2013 22:37:00 +0000 (18:37 -0400)]
#14360: make encoders.encode_quopri work.
There were no tests for the encoders module. encode_base64 worked
because it is the default and so got tested implicitly elsewhere, and
we use encode_7or8bit internally, so that worked, too. I previously
fixed encode_noop, so this fix means that everythign in the encoders
module now works, hopefully correctly. Also added an explicit test
for encode_base64.