Commit Graph

94774 Commits

Author SHA1 Message Date
Victor Stinner c206f1eb1c subprocess: enhance ResourceWarning message
* Add the process identifier to the warning message
* Add also a comment to explain the issue
2016-06-14 16:42:59 +02:00
Victor Stinner d017176209 Merge 3.5 2016-06-14 16:36:00 +02:00
Victor Stinner c72828ba33 cleanup random.c
Casting Py_ssize_t to Py_ssize_t is useless.
2016-06-14 16:35:49 +02:00
Victor Stinner 370f5136d4 Merge 3.5 (os.urandom, issue #27278) 2016-06-14 16:33:17 +02:00
Victor Stinner b98a36e8f3 Fix os.urandom() using getrandom() on Linux
Issue #27278: Fix os.urandom() implementation using getrandom() on Linux.
Truncate size to INT_MAX and loop until we collected enough random bytes,
instead of casting a directly Py_ssize_t to int.
2016-06-14 16:31:35 +02:00
Victor Stinner 673ac27499 Merge 3.5 2016-06-14 15:05:21 +02:00
Victor Stinner fd7f19ea67 Issue #25843: Fix the NEWS entry 2016-06-14 15:04:44 +02:00
Berker Peksag e0b70cd8a9 Issue #16864: Cursor.lastrowid now supports REPLACE statement
Initial patch by Alex LordThorsen.
2016-06-14 15:25:36 +03:00
Martin Panter 34f12d7315 Issue #16182: Merge test_readline from 3.5 2016-06-14 11:31:39 +00:00
Martin Panter a8cadb2243 Issue #16182: One more check for set_pre_input_hook() 2016-06-14 11:29:31 +00:00
Berker Peksag 357be7ccdb Merge from 3.5 2016-06-14 14:19:33 +03:00
Berker Peksag f85bce74db Mark tests as skipped when a SQLite version is not supported 2016-06-14 14:19:02 +03:00
Berker Peksag 7fb468bf3e Merge from 3.5 2016-06-14 13:25:35 +03:00
Berker Peksag 2b50899a28 Remove empty setUp and tearDown methods from sqlite3 tests
They are not used as base classes by another tests so they
can safely be removed.
2016-06-14 13:25:11 +03:00
Berker Peksag 4762d5d5d1 Merge from 3.5 2016-06-14 12:51:28 +03:00
Berker Peksag 48b13f0427 Delete outdated paragraph about OptimizedUnicode again
sqlite3.OptimizedUnicode is an alias for str in Python 3 and
its behavior is already tested in CheckOptimizedUnicode in
Lib/sqlite3/test/factory.py.

sqlite3.OptimizedUnicode was undocumented in 0fc10a33eb4c and
probably added back with the result of a bad merge.
2016-06-14 12:51:07 +03:00
Serhiy Storchaka 255bbf2d25 Issue #26386: Fixed ttk.TreeView selection operations with item id's
containing spaces.
2016-06-14 12:39:18 +03:00
Serhiy Storchaka 8e6d09c1cc Issue #26386: Fixed ttk.TreeView selection operations with item id's
containing spaces.
2016-06-14 12:33:31 +03:00
Martin Panter 6d1d2f229e Issue #16182: Merge readline update from 3.5 2016-06-14 08:49:51 +00:00
Martin Panter 6afbc653a7 Issue #16182: set_pre_input_hook() may not exist; document, and update test 2016-06-14 08:45:43 +00:00
doko@ubuntu.com 006a56ceda - Don't use largefile support for GNU/Hurd. 2016-06-14 10:15:25 +02:00
doko@ubuntu.com eea86b0bc0 - Issue #23968: Update distutils/sysconfig.py to look for the renamed
_sysconfigdata module too.
2016-06-14 09:22:16 +02:00
doko@ubuntu.com c8fd1928d0 - Issue #8637: Honor a pager set by the env var MANPAGER (in preference to
one set by the env var PAGER).
2016-06-14 09:03:52 +02:00
doko@ubuntu.com 5553231b91 - Issue #23968: Rename the platform directory from plat-$(MACHDEP) to
plat-$(PLATFORM_TRIPLET).
  Rename the config directory (LIBPL) from config-$(LDVERSION) to
  config-$(LDVERSION)-$(PLATFORM_TRIPLET).
  Install the platform specifc _sysconfigdata module into the platform
  directory and rename it to include the ABIFLAGS.
2016-06-14 08:55:19 +02:00
Benjamin Peterson c09087680e merge 3.5 2016-06-13 23:43:40 -07:00
Benjamin Peterson 11a693d330 merge 3.4 2016-06-13 23:41:40 -07:00
Benjamin Peterson 06d49bb895 sync ordering of stddef.h includes with expat 2.1.1 2016-06-13 23:41:19 -07:00
doko@ubuntu.com 965754521e - Issue #8637: Honor a pager set by the env var MANPAGER (in preference to
one set by the env var PAGER).
2016-06-14 08:39:31 +02:00
Martin Panter 8e4b7ac7fe Issue #16182: Merge test_readline from 3.5 2016-06-14 05:46:17 +00:00
Martin Panter 056f76d978 Issue #16182: Attempted workarounds for Apple Editline 2016-06-14 05:45:31 +00:00
doko@ubuntu.com 17f0e61891 - Modules/_collectionsmodule.c: Mark one more internal symbol as static. 2016-06-14 07:27:58 +02:00
Terry Jan Reedy 5cd6ea44bf Issue #27245: revert temporary rename 2016-06-14 00:55:09 -04:00
Terry Jan Reedy d34bafa970 Merge with 3.5 2016-06-14 00:53:41 -04:00
Terry Jan Reedy cdd3a99106 Issue #27245: temporary rename for merge. 2016-06-14 00:53:30 -04:00
Terry Jan Reedy ec84417ce8 Issue #27245: IDLE: Cleanly delete custom themes and key bindings.
Previously, when IDLE was started from a console or by import, a cascade
of warnings was emitted.  Patch by Serhiy Storchaka.
2016-06-14 00:53:25 -04:00
Martin Panter bd305e497f Issue #22636: Merge ctypes.util from 3.5 2016-06-14 04:31:14 +00:00
Martin Panter e1b3431cef Issue #22636: Handle OSError from subprocess, e.g. if command not found 2016-06-14 04:08:30 +00:00
Ned Deily ed80db5784 Merge 3.6.0a2 releasing branch into default 2016-06-13 23:55:33 -04:00
Ned Deily 8a43f727a4 Start 3.6.0a3 2016-06-13 23:46:45 -04:00
Martin Panter 1db314bd5c Issue #22636: Merge ctypes.util shell injection fixes from 3.5 2016-06-14 02:59:21 +00:00
Martin Panter 4074f93b33 Issue #16182: Merge readline locale fix from 3.5 2016-06-14 02:47:56 +00:00
Martin Panter b769164636 Issue #17500: Remove merge conflict scar tissue 2016-06-14 02:23:31 +00:00
Martin Panter bfb15ab711 Issue #22636: avoid using a shell in the ctypes.util module
Replace os.popen() with subprocess.Popen. Based on patch by Victor Stinner.

If the "gcc", "cc" or "objdump" command is not available, the code was
supposed to raise an OSError exception. But there was a bug in the code. The
shell code returns the exit code 10 if the required command is missing, and the
code tries to check for the status 10. The problem is that os.popen() doesn't
return the exit code directly, but a status which should be processed by
os.WIFEXITED() and os.WEXITSTATUS(). In practice, the exception was never
raised. The OSError exception was not documented and ctypes.util.find_library()
is expected to return None if the library is not found.
2016-06-14 01:27:11 +00:00
Martin Panter f00c49df10 Issue #16182: Fix readline begidx, endidx, and use locale encoding
Based on patch by Serhiy Storchaka.
2016-06-14 01:16:16 +00:00
Ned Deily e371599004 Issue #27310: Fix IDLE.app failure to launch on OS X due to vestigial import. 2016-06-13 20:27:57 -04:00
Ned Deily 19e21e4948 Issue #27310: remove vestigial import in IDLE.app 2016-06-13 20:22:53 -04:00
Martin Panter 9b1f4431c7 Issue #27136: Merge test_asyncio fix from 3.5 2016-06-13 23:51:02 +00:00
Berker Peksag c4e1e19f12 Issue #27306: Merge from 3.5 2016-06-14 00:49:05 +03:00
Berker Peksag 9748478086 Issue #27306: Fix typo in tarfile documentation
Patch by Gareth Rees.
2016-06-14 00:48:35 +03:00
Berker Peksag c8e005808c Merge from 3.5 2016-06-14 00:43:14 +03:00