Commit Graph

78366 Commits

Author SHA1 Message Date
R David Murray a68109a248 #0712: 2to3 has a new "asserts" fixer that replaces deprecated names of unittest methods.
Patch by Ezio Melotti, docs by Berker Peksag.
2014-10-09 23:13:42 -04:00
Terry Jan Reedy 1375538b1a De-'colour'ize stdlib except for idlelib.configDialog.
Tweak docstrigs and comments in affected functions in idlelib.configHandler.
2014-10-09 18:44:26 -04:00
Victor Stinner a6066ce6b1 Closes #22580: Fix documentation of PyUnicode_Tailmatch()
The result type is Py_ssize_t (and not int).
2014-10-09 11:14:04 +02:00
Terry Jan Reedy 23030dbfe2 Issue 3068: Move idlelib.configDialog action button creation into a separate
method so it can be reused by the new extension dialog.
2014-10-08 20:29:05 -04:00
Terry Jan Reedy 163d7fb842 idlelib.configHandler: revise docstrings, add spaces, use False/True, add some
TODOs (mostly to do after add tests), and make a few other changes.
2014-10-06 23:26:17 -04:00
Benjamin Peterson 05179d528c use source role instead of linking to svn 2014-10-06 21:10:25 -04:00
Benjamin Peterson 3d1f2d3b52 make _socket.socket weakrefable (closes #22569)
Patch from Alex Gaynor.
2014-10-06 14:38:20 -04:00
Georg Brandl 7788dba204 Closes #19071: "self" argument is not the module for module functions in 2.x. 2014-10-06 18:01:02 +02:00
Georg Brandl 436ebf8a52 Closes #16155: fix a few errors in doctest output of the FAQ pages. 2014-10-06 17:51:46 +02:00
Georg Brandl 8d867cb718 Closes #17057: fix grammar in old-style vs new-style class docs. 2014-10-06 17:46:43 +02:00
Ezio Melotti c468abafc7 #18034: update FAQ to suggest importlib.import_module instead of __import__. Patch by Wouter van Heyst. 2014-08-04 19:34:29 +03:00
Terry Jan Reedy ae4108612c PEP 8 spacing in idlelib.configDialog: mostly a = b in assignments,
a, b in arg lists, and hanging indents for long arg lists.
2014-08-03 23:02:53 -04:00
Jason R. Coombs c4a907dbc1 Issue #13540: Merge commits 2014-08-03 14:57:20 -04:00
Jason R. Coombs 2b492032f2 Issue #13540: Update references to Action class to match syntax used for other classes in this file. 2014-08-03 14:54:11 -04:00
Raymond Hettinger 9376c8b5e3 Fix typo in comment. 2014-08-01 23:51:51 -07:00
doko@ubuntu.com a16fd7a7ec - update config.guess and config.sub to support openrisc. 2014-08-01 17:48:17 +02:00
Serhiy Storchaka 04fa704161 Issue #21580: Now Tkinter correctly handles binary "data" and "maskdata"
configure options of tkinter.PhotoImage.

Added private Tkapp method _createbytearray().
2014-07-31 07:48:14 +03:00
Terry Jan Reedy 19b7a75abf Issue #22068: Don't create self reference cycles in idlelib.ConfigDialog.
In 2.7, these become leaks and cause test_gc to fail.
2014-07-30 19:24:26 -04:00
Serhiy Storchaka 77149a1c61 Issue #21951: Temporary skip crashing test_user_command on AIX. 2014-07-30 10:58:34 +03:00
Victor Stinner 2af8d2f698 Issue #22023: Fix %S, %R and %V formats of PyUnicode_FromFormat(). 2014-07-30 00:39:05 +02:00
Robert Jordens af09c774e5 Issue #21591: add test for qualified exec in tuple form. 2014-07-29 17:24:24 +02:00
Dirkjan Ochtman 9b1d670361 Issue #21591: Handle exec backwards compatibility in the AST builder.
Instead of deferring until runtime. This makes sure we hit the right
conditions in dealing with unqualified exec statements.

Reviewed by Victor Stinner. Test follows in a later commit.
2014-07-29 17:21:39 +02:00
Victor Stinner c382807559 Issue #19612: subprocess.communicate() now also ignores EINVAL when using at
least two pipes.
2014-07-29 00:04:54 +02:00
Terry Jan Reedy 110796fb15 Reduce unnecessary 2.7 versus 3.4+ differences in idlelib/configDialog.py.
Only change 2.7 version.
Remove ".keys()" from "x in y.keys()" (leave .keys() elsewhere alone).
Change "string.join" to "' '.join" (and string.join(s, ';') to ';'.join(s)).
Change spacing to match 3.4 (will later make spacing changes to both).
2014-07-27 04:07:18 -04:00
Terry Jan Reedy 87355a77db Modernize turtledemo with conditional expressions; remove duplicate line. 2014-07-27 03:00:47 -04:00
Victor Stinner 0a649c7bb1 Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError
on closed socket.
2014-07-26 14:52:55 +02:00
Victor Stinner 465db3c69a socketmodule.c: backport INVALID_SOCKET from Python 3.5 to simplify the code 2014-07-26 14:47:56 +02:00
Charles-François Natali 5a1427c8a3 Issue #19875: Fix random test_getsockaddrarg() failure. 2014-07-26 13:44:50 +01:00
Zachary Ware 6d8f29a623 Issue #21958: Define HAVE_ROUND when building with VS 2013 and above.
Patch by Zachary Turner.
2014-07-25 14:34:19 -05:00
Raymond Hettinger 1b5f58d167 Issue #21990: Cleanup unnecessary inner class definition in saxutils. 2014-07-25 10:26:36 -07:00
Serhiy Storchaka 2ce9ddd041 Issue #22061: Add deprecation warnings in empty obsolete methods. 2014-07-25 12:23:08 +03:00
Terry Jan Reedy 98e6fa6c3f Issue #22061: remove call of useless function slated for removal. 2014-07-25 03:06:27 -04:00
Terry Jan Reedy 8ac01bf038 Issue #22053: Make help work, after previous patch for this issue disabled it
by removing global 'demo'. Refactor and remove duplicate code.
2014-07-25 01:56:17 -04:00
Victor Stinner 1d9457d2d2 Issue #19884, readline: calling rl_variable_bind ("enable-meta-key", "off")
does crash on Mac OS X which uses libedit instead of readline.
2014-07-24 22:11:21 +02:00
Victor Stinner fe9ebe4f4f Issue #16133: The asynchat.async_chat.handle_read() method now ignores
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY,
EINPROGRESS, or EWOULDBLOCK. Initial patch written by Xavier de Gaye.
2014-07-24 19:15:00 +02:00
Serhiy Storchaka 186f66540d Issue #1730136: Fix comparison between a tk Font object and an object of a
different type.
2014-07-24 17:48:28 +03:00
Victor Stinner 63a474788a Issue #19884: readline: Disable the meta modifier key if stdout is not a
terminal to not write the ANSI sequence "\033[1034h" into stdout. This sequence
is used on some terminal (ex: TERM=xterm-256color") to enable support of 8 bit
characters.
2014-07-24 12:22:24 +02:00
Andrew Svetlov 909d61f7dd Fix grammar 2014-07-24 08:08:15 +03:00
Terry Jan Reedy cbe6d24313 Issue #22053: Cleanup turtledemo start and stop and fix debug shutdown warning. 2014-07-23 17:27:51 -04:00
Zachary Ware f2eb721d14 Issue #19493: Fix two uses of ctypes.test.requires (it's not a decorator)
and skip test_win32.FunctionCallTestCase.test_SEH when Python was compiled
in debug configuration or by a non-MSC compiler.
2014-07-23 14:29:25 -05:00
Serhiy Storchaka 12e7870650 Merge heads 2014-07-23 22:12:39 +03:00
Serhiy Storchaka 58f9b57b6f Merge heads 2014-07-23 22:07:37 +03:00
Serhiy Storchaka 9cb68ca927 Issue #6167: Backported tests for Scrollbar.activate() and Scrollbar.set()
from 6ae34a948cb4.
2014-07-23 22:06:26 +03:00
Terry Jan Reedy e2fbf4faca Issue #21597: Turtledemo text pane can now be widened to view or copy complete
lines or narrowed for small screens.
Issie #19132: Turtledemo buttons no longer disappear when window is shrun.
Patch mostly by Lita Cho (21597) using idea from patch by Jan Kanis (18132).
2014-07-23 15:01:07 -04:00
Zachary Ware 85b5b73999 Fix minor typo in round docs. Reported by Scott Hinton on docs@. 2014-07-22 13:14:54 -05:00
Zachary Ware f6aac5d75b Closes #21665: Don't use OPTS=noxp or -DWINVER=0x0500 when compiling Tcl/Tk
on the buildbots.

2.7 does still support Win2k, but using those options makes default ttk ugly
while not using them doesn't seem to break Win2k.
2014-07-22 12:26:34 -05:00
Serhiy Storchaka fc1ae6c673 Fixed bugs in reprs of CookieJar and multiprocessing.dummy.Value. 2014-07-22 11:11:01 +03:00
Serhiy Storchaka 7cc3b0aefb Backout 308f3c1e36d3. This change (issue21044) does not need to be merged on
2.7, as the os.fdopen sets the name attribute to '<fdopen>' and not to the fd.
2014-07-22 10:39:59 +03:00
Serhiy Storchaka 7f7d99c279 Issue #15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/
now display special message when and only when there are failures.
2014-07-22 10:28:36 +03:00
Antoine Pitrou 4e64d8768f Issue #21976: Fix test_ssl to accept LibreSSL version strings.
Thanks to William Orr.
2014-07-21 18:35:01 -04:00