Commit graph

39733 commits

Author SHA1 Message Date
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
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
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
Martin Panter
9b1f4431c7 Issue #27136: Merge test_asyncio fix from 3.5 2016-06-13 23:51:02 +00:00
Berker Peksag
c8e005808c Merge from 3.5 2016-06-14 00:43:14 +03:00
Berker Peksag
48b5c98e6e Replace more boilerplate code with modern unittest features in sqlite3 tests 2016-06-14 00:42:50 +03:00
Ned Deily
8b9173a8de Update pydoc topics for 3.6.0a2 2016-06-13 16:51:55 -04:00
Serhiy Storchaka
8acb568c88 Issue #27025: Generated names for Tkinter widgets are now more meanful
and recognizirable.
2016-06-13 09:24:11 +03:00
Martin Panter
0c9ad59dab Issue #27186: Skip scandir(bytes) test with os.name == "nt" 2016-06-13 03:28:35 +00:00
Larry Hastings
29f9637321 Merge 3.5.2rc1 with current 3.5 branch. 2016-06-12 20:26:28 -07:00
Martin Panter
5fc7c4dce1 Issue #27136: Change test to use ::1 for better OS X Tiger compatibility 2016-06-13 03:17:47 +00:00
Terry Jan Reedy
2518fa8326 Issue #27239: Continue refactoring idlelib.macosx and adding macosx tests. 2016-06-12 15:49:20 -04:00
Berker Peksag
7670e3c12e Merge from 3.5 2016-06-12 22:35:10 +03:00
Berker Peksag
1003b34c71 Modernize sqlite3 tests
Update current tests that use old pattern with assertRaises
to make them more maintainable.
2016-06-12 22:34:49 +03:00
Brett Cannon
41ae559108 Issue #27186: skip bytes path test for os.scandir() on Windows 2016-06-12 11:11:20 -07:00
Serhiy Storchaka
64204de04c Issue #27095: Simplified MAKE_FUNCTION and removed MAKE_CLOSURE opcodes.
Patch by Demur Rumed.
2016-06-12 17:36:24 +03:00
Serhiy Storchaka
5697c4b641 Comment fixes extracted from patch by Demur Rumed. 2016-06-12 17:02:10 +03:00
Berker Peksag
4746080921 Issue #27289: Merge from 3.5 2016-06-12 16:28:16 +03:00
Berker Peksag
c74cdc7170 Issue #27289: Prevent test_urllib2net failures due to EOFError raised by ftplib 2016-06-12 16:27:48 +03:00
Serhiy Storchaka
8918b89e61 Issue #25455: Clean up reference loops created in tests for recursive
functools.partial objects.
2016-06-12 15:53:09 +03:00
Serhiy Storchaka
46fe29de31 Issue #25455: Clean up reference loops created in tests for recursive
functools.partial objects.
2016-06-12 15:45:14 +03:00
Berker Peksag
0f355c0022 Issue #27190: Merge from 3.5 2016-06-12 14:10:24 +03:00
Berker Peksag
7bea2347c7 Issue #27190: Raise NotSupportedError if sqlite3 is older than 3.3.1
Patch by Dave Sawyer.
2016-06-12 14:09:51 +03:00
Berker Peksag
96471105f4 Issue #27188: Merge from 3.5 2016-06-12 13:42:12 +03:00
Berker Peksag
c415440faa Issue #27188: Fix various sqlite3 documentation errors
* Connection.execute* methods don't create intermediate cursor objects
* Fix description of seq_of_parameters parameter
* Clarify that Warning is sqlite3.Warning
* sql_script parameter of Cursor.executescript() doesn't accept bytes
* Add missing tests
* Fix various markup errors

Initial patch by Dave Sawyer.
2016-06-12 13:41:47 +03:00
Serhiy Storchaka
b62ff6eb57 Issue #25455: Fixed a crash in repr of recursive functools.partial objects. 2016-06-12 11:51:26 +03:00
Serhiy Storchaka
179f960d47 Issue #25455: Fixed a crash in repr of recursive functools.partial objects. 2016-06-12 11:44:06 +03:00
Serhiy Storchaka
4aa15a0d0d Merge heads 2016-06-12 09:48:19 +03:00
Serhiy Storchaka
cbe6142135 Merge heads 2016-06-12 09:47:57 +03:00
Serhiy Storchaka
f0ee5ccd19 Issue #25455: Fixed a crash in repr of ElementTree.Element with recursive tag. 2016-06-12 09:47:20 +03:00
Serhiy Storchaka
9062c261a4 Issue #25455: Fixed a crash in repr of ElementTree.Element with recursive tag. 2016-06-12 09:43:55 +03:00
Serhiy Storchaka
cf2ad55511 Issue #27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
function with generalized unpacking (PEP 448) and conflicting keyword names
could cause undefined behavior.
2016-06-12 09:35:13 +03:00
Serhiy Storchaka
3c317e76a2 Issue #27286: Fixed compiling BUILD_MAP_UNPACK_WITH_CALL opcode. Calling
function with generalized unpacking (PEP 448) and conflicting keyword names
could cause undefined behavior.
2016-06-12 09:22:01 +03:00
Martin Panter
aea671efc6 Merge typo fixes from 3.5 2016-06-12 06:16:51 +00:00
Martin Panter
70c502aacf Fix typos and English grammar in documentation and code comment 2016-06-12 06:14:03 +00:00
Martin Panter
50d4c15ba7 Issue #27030: Merge RE fix from 3.5 2016-06-12 06:08:29 +00:00
Martin Panter
d4704803b9 Fix buggy RE “\parrot_example.py”, uncovered by Issue #27030 2016-06-12 06:07:35 +00:00
Martin Panter
5285545271 Issue #16484: Merge pydoc Windows fixes from 3.5 2016-06-12 04:31:25 +00:00
Martin Panter
4f8aaf6440 Issue #16484: Fix pydoc link and test on Windows, by Kaushik Nadikuditi 2016-06-12 04:24:06 +00:00
Larry Hastings
b37a142dab Regenerated pydoc topics for 3.5.2rc1. 2016-06-11 20:40:26 -07:00
Martin Panter
62bdea58c5 Drop unused import 2016-06-12 01:56:50 +00:00
Łukasz Langa
34ad2ef8f9 Merge 3.5, issue #14209 2016-06-11 18:05:42 -07:00