- 23 Nov, 2017 3 commits
-
-
Victor Stinner authored
* bpo-31324: Optimize support._match_test() (#4421) * Rename support._match_test() to support.match_test(): make it public * Remove support.match_tests global variable. It is replaced with a new support.set_match_tests() function, so match_test() doesn't have to check each time if patterns were modified. * Rewrite match_test(): use different code paths depending on the kind of patterns for best performances. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit 803ddd8c) * bpo-31324: Fix test.support.set_match_tests(None) (#4505) (cherry picked from commit bb11c3c9) (cherry picked from commit 70b2f8797146a56a6880743424f0bedf4fc30c62)
-
Victor Stinner authored
Fix the following warning: Warning -- files was modified by test_builtin Before: [] After: ['@test_19422_tmp'] 1 test altered the execution environment: test_builtin
-
Victor Stinner authored
Replace python3 with python2.
-
- 20 Nov, 2017 1 commit
-
-
Victor Stinner authored
The line number in correct when using the -x option: Py_Main() uses ungetc() to not skip the first newline character.
-
- 19 Nov, 2017 1 commit
-
-
Masayuki Yamamoto authored
(cherry picked from commit 7750bded)
-
- 17 Nov, 2017 2 commits
-
-
Erik Bray authored
`kargs` -> `kwargs`
-
native-api authored
-
- 14 Nov, 2017 1 commit
-
-
Miss Islington (bot) authored
(cherry picked from commit b0b44b4b)
-
- 11 Nov, 2017 1 commit
-
-
Gregory P. Smith authored
* Work around a GC process finalization bug. The logging RLock instances may exist but the threading.RLock class itself has already been emptied causing a Exception TypeError: "'NoneType' object is not callable" in <function _removeHandlerRef ..." to be printed to stderr on process termination. This catches that exception and ignores it because there is absolutely nothing we can or should do about it from the context of a weakref handler called from the gc context.
-
- 10 Nov, 2017 1 commit
-
-
Serhiy Storchaka authored
-
- 09 Nov, 2017 2 commits
-
-
Serhiy Storchaka authored
[2.7] bpo-31927: Fix reading arbitrary data when parse a AF_BLUETOOTH address (GH-4235) (GH-4352) (#4355) on NetBSD and DragonFly BSD. (cherry picked from commit d3187158). (cherry picked from commit 596286f8f3c8e53ef010d6298464775dc900a515)
-
Serhiy Storchaka authored
select.kevent objects are now comparable with other objects in Python 2.
-
- 08 Nov, 2017 4 commits
-
-
Victor Stinner authored
Define __hash__() in test_functools and test_itertools to fix the following warning: DeprecationWarning: Overriding __eq__ blocks inheritance of __hash__ in 3.x
-
Mazay0 authored
Fix CCompiler.set_executable() of distutils to handle properly Unicode strings.
-
Oren Milman authored
bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor object is uninitialized (GH-4333)
-
- 07 Nov, 2017 5 commits
-
-
Miss Islington (bot) authored
(cherry picked from commit 5a66c8a6)
-
Miss Islington (bot) authored
(cherry picked from commit cb04f751)
-
Serhiy Storchaka authored
-
Miss Islington (bot) authored
bpo-31770: Prevent a crash and refleaks when calling sqlite3.Cursor.__init__() more than once (GH-3968) (#4302) (cherry picked from commit e56ab746)
-
Oren Milman authored
-
- 04 Nov, 2017 3 commits
-
-
Miss Islington (bot) authored
(cherry picked from commit aafece7a)
-
Serhiy Storchaka authored
(cherry picked from commit b838cc3f)
-
Serhiy Storchaka authored
* Using ifconfig on NetBSD and OpenBSD. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD. Based on patch by Takayuki Shimizukawa.. (cherry picked from commit ee1a9a2b)
-
- 03 Nov, 2017 2 commits
-
-
Miss Islington (bot) authored
(cherry picked from commit a7723d8b)
-
Antoine Pitrou authored
Bug report and patch by Jeroen Demeyer.. (cherry picked from commit f6f90ff0)
-
- 01 Nov, 2017 5 commits
-
-
Miss Islington (bot) authored
(cherry picked from commit 4f469c09)
-
Serhiy Storchaka authored
-
Miss Islington (bot) authored
(cherry picked from commit 894ebd06)
-
Miss Islington (bot) authored
bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI. (cherry picked from commit 280c22a8)
-
Miss Islington (bot) authored
Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). (cherry picked from commit 8bc7d635)
-
- 31 Oct, 2017 5 commits
-
-
Miss Islington (bot) authored
* Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. (cherry picked from commit 2298fad5)
-
Victor Stinner authored
Document the following functions: * PyObject_Malloc() * PyObject_Realloc() * PyObject_Free() Document also the pymalloc allocator.
-
Serhiy Storchaka authored
* Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects.. (cherry picked from commit b9052a0f)
-
Serhiy Storchaka authored
(cherry picked from commit baac01e6)
-
Victor Stinner authored
test_curses now saves/restores signals. On FreeBSD, the curses module sets handlers of some signals, but don't restore old handlers when the module is deinitialized. (cherry picked from commit 19f68301)
-
- 29 Oct, 2017 1 commit
-
-
Serhiy Storchaka authored
separators that are not bytes-like objects.. (cherry picked from commit a2314283)
-
- 25 Oct, 2017 2 commits
-
-
Serhiy Storchaka authored
-
Benjamin Peterson authored
GCC says: ../cpython/Python/marshal.c: In function ‘PyMarshal_WriteLongToFile’: ../cpython/Python/marshal.c:70:35: warning: ‘wf.ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \ ^~ ../cpython/Python/marshal.c:70:47: warning: ‘wf.end’ may be used uninitialized in this function [-Wmaybe-uninitialized] else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \ ^~ ../cpython/Python/marshal.c:77:10: warning: ‘wf.str’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (p->str == NULL) ~^~~~~ This isn't a real problem because if the file pointer is not NULL, the string-related fields are never touched. But, it doesn't hurt to set the unused fields to NULL.
-
- 24 Oct, 2017 1 commit
-
-
Serhiy Storchaka authored
(cherry picked from commit f52dff611cff2fb9e90340b4787eda50ab2d40c6)
-