]>
granicus.if.org Git - python/log
Victor Stinner [Fri, 26 Jul 2013 22:00:36 +0000 (00:00 +0200)]
According to the PEP 7, C code must "use 4-space indents"
Replace 8 spaces with 4.
Christian Heimes [Fri, 26 Jul 2013 21:04:29 +0000 (23:04 +0200)]
Issue #18561: Skip name in ctypes' _build_callargs() if name is NULL.
CID 486199
Christian Heimes [Fri, 26 Jul 2013 20:49:26 +0000 (22:49 +0200)]
Issue #18560: Fix potential NULL pointer dereference in sum()
Christian Heimes [Fri, 26 Jul 2013 20:45:00 +0000 (22:45 +0200)]
Issue #18559: Fix NULL pointer dereference error in _pickle module
Christian Heimes [Fri, 26 Jul 2013 13:54:07 +0000 (15:54 +0200)]
Handle yet another potential failure in testcapi
CID
1058280
Christian Heimes [Fri, 26 Jul 2013 13:51:18 +0000 (15:51 +0200)]
Check return value of PyLong_FromLong(X509_get_version()). It might be NULL if
X509_get_version() grows beyond our small int cache.
CID
1058279
Christian Heimes [Fri, 26 Jul 2013 13:26:18 +0000 (15:26 +0200)]
remove surplus and wrong Py_DECREF() introduced in
33891989c9cf
Christian Heimes [Fri, 26 Jul 2013 13:06:48 +0000 (15:06 +0200)]
Fix declaration-after-statement of
d49f65ff4f3c
Christian Heimes [Fri, 26 Jul 2013 13:03:50 +0000 (15:03 +0200)]
Fix memory leaks and add checks for failing malloc() calls to testcapi module
CID
1058288
Christian Heimes [Fri, 26 Jul 2013 12:52:18 +0000 (14:52 +0200)]
Fix possible NULL pointer dereferences in testcapi module
CID
1058280
CID
1058282
CID
1058284
Christian Heimes [Fri, 26 Jul 2013 12:45:37 +0000 (14:45 +0200)]
Fix possible NULL pointer dereference in PyCurses_Start_Color()
CID
1058276
Brett Cannon [Thu, 25 Jul 2013 21:34:00 +0000 (17:34 -0400)]
Issue #18556: Check the return value for PyUnicode_AsWideChar() in
U_set() from ctypes.
CID #486657
R David Murray [Thu, 25 Jul 2013 17:24:15 +0000 (13:24 -0400)]
#15130: remove repeat of abstract paragraph from socket howto body.
Patch by Tshepang Lekhonkhobe.
R David Murray [Thu, 25 Jul 2013 16:11:55 +0000 (12:11 -0400)]
#18503: small cleanups in test_email.
Patch by Vajrasky Kok.
Christian Heimes [Thu, 25 Jul 2013 09:46:10 +0000 (11:46 +0200)]
Issue #18549: Eliminate dead code in socket_ntohl().
CID 982369
Ezio Melotti [Thu, 25 Jul 2013 03:21:00 +0000 (05:21 +0200)]
#14853: remove test that was making too many assumptions about stdin. Patch by Elena Oat.
Ezio Melotti [Thu, 25 Jul 2013 03:04:02 +0000 (05:04 +0200)]
#16937: document that stdin is always buffered, even when -u is used. Patch by Elena Oat.
Christian Heimes [Wed, 24 Jul 2013 19:02:17 +0000 (21:02 +0200)]
Fix potential NULL pointer dereferencing in ast module
CID 719690
Vinay Sajip [Wed, 24 Jul 2013 16:52:01 +0000 (17:52 +0100)]
Issue #18541: simplified LoggerAdapter example.
Benjamin Peterson [Tue, 23 Jul 2013 05:08:09 +0000 (22:08 -0700)]
return NULL here
Serhiy Storchaka [Mon, 22 Jul 2013 18:00:11 +0000 (21:00 +0300)]
Issue #17944: test_zipfile now discoverable and uses subclassing to
generate tests for different compression types. Fixed a bug with skipping
some tests due to use of exhausted iterators.
Christian Heimes [Mon, 22 Jul 2013 14:34:13 +0000 (16:34 +0200)]
Some compilers complain about 'control reaches end of non-void function'
because they don't understand that Py_FatalError() terminates the program.
Christian Heimes [Mon, 22 Jul 2013 10:53:32 +0000 (12:53 +0200)]
Issue #15905: Fix theoretical buffer overflow in handling of sys.argv[0],
prefix and exec_prefix if the operation system does not obey MAXPATHLEN.
Christian Heimes [Mon, 22 Jul 2013 08:37:41 +0000 (10:37 +0200)]
merge
Christian Heimes [Mon, 22 Jul 2013 08:30:14 +0000 (10:30 +0200)]
Add sanity check to PyGrammar_LabelRepr() in order to catch invalid tokens when debugging
a new grammar.
CID 715360
Terry Jan Reedy [Mon, 22 Jul 2013 00:57:44 +0000 (20:57 -0400)]
Issue #18439: Make patchcheck work on Windows for ACKS, NEWS.
Christian Heimes [Sun, 21 Jul 2013 21:05:04 +0000 (23:05 +0200)]
Now all error paths of _freeze_importlib use 'goto error' and the error label cleans up all used resources.
Benjamin Peterson [Sun, 21 Jul 2013 20:29:37 +0000 (13:29 -0700)]
fix spacing
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.