Commit Graph

1216 Commits

Author SHA1 Message Date
Terry Jan Reedy c8d9e0e932 Update the python.gif icon for the Idle classbrowser and pathbowser
from the old green snake to the new new blue and yellow snakes.
2014-02-01 23:08:33 -05:00
Terry Jan Reedy 1e40295af6 Idlelib: forward port changes that silenced 2.7 -3 deprecation warnings and
which are at least as efficient. On Py3, unpacking exceptions never works.
2014-01-28 23:13:45 -05:00
Terry Jan Reedy 91d4278fba Issue #17721: Remove non-functional configuration dialog help button until we
make it actually gives some help when clicked. Patch by Guilherme Simões.
2014-01-26 22:24:26 -05:00
Terry Jan Reedy 1b759bc49e Idlelib.calltips: add test of starred first parameters. They should not be
removed even for bound methods. (Inspect.signature does, see 20401.)
2014-01-26 21:34:33 -05:00
Terry Jan Reedy a0f1e22068 Issue #20338: Increase allowed tip width slightly and wrap long signagure lines.
Original patch by Serhiy Storchaka.
2014-01-26 19:55:34 -05:00
Terry Jan Reedy 94338de49b Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
2014-01-23 00:36:46 -05:00
Terry Jan Reedy 0e3b0e397e Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
completely redundant. After 16638 patch, CallTips.get_argspec trims over-long
signature strings as well as docstring lines.
2014-01-21 21:12:24 -05:00
Terry Jan Reedy d5710f8b36 Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such bytes (which is why 5).
Based on patch by Serhiy Storchaka.
2014-01-21 20:45:17 -05:00
Terry Jan Reedy 715476d8e3 Issue #16630: Make Idle calltips work even when __getattr__ raises.
Initial patch by Roger Serwy.
2014-01-21 15:36:51 -05:00
Terry Jan Reedy eed1661b47 Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins. 2014-01-21 03:07:51 -05:00
Terry Jan Reedy 681ede8b0a Issue #20122: Idlelib: Move tests in CallTips.py to test_calltips.py. 2014-01-21 00:26:21 -05:00
Serhiy Storchaka 768c16ce02 Issue #18960: Fix bugs with Python source code encoding in the second line.
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.

* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.

* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.

* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.

* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.

* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
2014-01-09 18:36:09 +02:00
Serhiy Storchaka 0fd557647d Issue #20058: sys.stdin.readline() in IDLE now always returns only one line. 2013-12-25 14:24:35 +02:00
Ned Deily f3c6589ea3 Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
shell window is present. (Original patch by Terry Reedy)
2013-12-10 16:24:01 -08:00
Serhiy Storchaka 9df8a1c112 Issue #19481: print() of string subclass instance in IDLE no more hangs. 2013-12-10 10:05:19 +02:00
Georg Brandl 9e2043a561 Bump to 3.3.3 final. 2013-11-17 07:58:22 +01:00
Georg Brandl 4cf9b2047d Bump to 3.3.3rc2. 2013-11-11 06:13:54 +01:00
Georg Brandl 2d34f41bee Bump to 3.3.3rc1. 2013-10-27 09:22:59 +01:00
Serhiy Storchaka dafea85190 Issue #18873: The tokenize module, IDLE, 2to3, and the findnocoding.py script
now detect Python source code encoding only in comment lines.
2013-09-16 23:51:56 +03:00
Serhiy Storchaka dd4754e6a8 Issue #18988: The "Tab" key now works when a word is already autocompleted. 2013-09-11 22:46:27 +03:00
Terry Jan Reedy 31e4d325b6 Issue #18489: Add complete, gui-free tests for idlelib.SearchEngine.
Patch import and initialization in SearchEngine to make testing easier.
Improve docstrings, especially to clarify the double role of 'ok' parameters.
Original patch by Phil Webster.
2013-08-31 16:27:16 -04:00
Terry Jan Reedy ca64d25dd2 Issue #18489: idlelib.SearchEngine - add docstrings
(original patch by Phil Webster).
2013-08-19 01:05:19 -04:00
Terry Jan Reedy ba5d8f33ec Issue #18592: whitespace 2013-08-18 18:27:02 -04:00
Terry Jan Reedy c5507c0d76 Issue #18592: Add docstrings to file being tested (idlelib.SearchDialogBase.py). 2013-08-18 18:22:43 -04:00
Ezio Melotti b5bc353b88 #18741: fix more typos. Patch by Févry Thibault. 2013-08-17 16:11:40 +03:00
Terry Jan Reedy 29c3fc5d8f Issue #18732: Remove unused* parameter output_sep from IdleHistory.History
and paired splits and joins that do nothing when output_sep is its default \n.
*It in unused in that the class in only instantiated once, with the default.
Make a few other changes in .fetch and its test.
2013-08-15 16:19:13 -04:00
Terry Jan Reedy c2564f9329 Issue #18425: Unittests for idlelib.IdleHistory. First patch by R. Jayakrishnan. 2013-08-15 14:32:04 -04:00
Terry Jan Reedy 0a01ac4300 Issue #18425: Add docstrings to IdleHistory.py. Remove redundant 'history_'
prefix from two attributes and two methods of History class.
2013-08-13 19:51:04 -04:00
Terry Jan Reedy 7c64aad9fb Issue #18226: Add docstrings and unittests for idlelib/FormatParagraph.py.
Move comment code to a separate function so it can be separately tested.
Original patches by Todd Rovito and Phil Webster.
2013-08-10 16:56:28 -04:00
Terry Jan Reedy 95f34ab959 Issue #18151: Replace remaining Idle 'open...close' pairs with 'with open'. 2013-08-04 15:39:03 -04:00
Terry Jan Reedy 4bd31292c2 Make all idle test case names end with 'Test'. 2013-07-30 01:36:48 -04:00
Terry Jan Reedy 015b4535c5 Update gui section of idle test README. 2013-07-28 16:39:44 -04:00
Terry Jan Reedy a9d16c85d7 Issue #18441: Remove check from test_text.py in 3.3,4 (already done in 2.7). 2013-07-28 16:25:16 -04:00
Ned Deily 8e8b9ba753 Issue #17532: Prevent exception when changing key sets if Options menu is empty. 2013-07-20 15:06:26 -07:00
Terry Jan Reedy e6a17862e7 Issue #18365: convert buildbot errors to skips. 2013-07-13 04:05:42 -04:00
Terry Jan Reedy 4f133e2e98 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.
2013-07-13 02:34:43 -04:00
Terry Jan Reedy 04ff0382b2 Issue #18365: normalize whitespace 2013-07-12 20:16:28 -04:00
Terry Jan Reedy 21784da416 Issue #18365: Add mock Text class and test thereof versus tk.Text.
Based on patches by Todd.Rovito and Phil Webster.
2013-07-12 20:10:23 -04:00
Terry Jan Reedy 8a0b7756e2 Issue #7136: In the Idle File menu, "New Window" is renamed "New File".
Patch by Tal Einat, Roget Serwy, and Todd Rovito.
2013-07-01 00:42:52 -04:00
Terry Jan Reedy acd5f81149 Issue #18189: add test_delegator for Idle Delegator class.
Also change private dict used as a set to a set.
2013-06-30 18:37:05 -04:00
Terry Jan Reedy 56fe854a77 Issue 18189: remove unused methods in idlelib.Delegator.Delegator.
Idle code already uses x.delegate instead of x.getdelegate().
The printed report must have been for testing.
2013-06-30 16:52:19 -04:00
Terry Jan Reedy e4e530e7e8 Issue #18103: Update README.txt and test_idle to describe and run gui tests. 2013-06-29 18:22:02 -04:00
Terry Jan Reedy 95a3f11f95 Issue *18081, #18242: Change Idle warnings capture in PyShell and run to stop
replacing warnings.formatwarnings and to reverse replacement of
warnings.showwarnings when import is complete and when main function exits.
Add test_warning.py. Vinay Sajip provided capture_warnings function.
2013-06-28 23:50:12 -04:00
Terry Jan Reedy de3beb2617 #18151, part 2: Silence debug build resource warning for each file opened by
'Find in files' by replacing 'open with implicit close' by 'with open' in
GrepDialog method grep_it. Streamline code with enumerate(), direct file
iteration, and output tweak. Add test for this method, including output format.
2013-06-22 18:26:51 -04:00
Brett Cannon 27bbfdbc4c Drop some dead imports of imp 2013-06-15 13:37:12 -04:00
Roger Serwy f467521927 #18196: Avoid displaying spurious SystemExit tracebacks. 2013-06-11 22:25:14 -05:00
Roger Serwy 036e84924a #5492: Avoid traceback when exiting IDLE caused by a race condition. 2013-06-11 22:13:17 -05:00
Roger Serwy 391f469681 #17511: Keep IDLE find dialog open after clicking "Find Next".
Original patch by Sarah K.
2013-06-10 23:01:20 -05:00
Terry Jan Reedy ba6c0d3b08 #18151, part 1: Backport idlelilb portion of Andrew Svetlov's 3.4 patch
changing IOError to OSError (#16715).
2013-06-08 00:22:45 -04:00
Brett Cannon 50793b4438 Issue #18055: Move to importlib from imp for IDLE. 2013-06-07 13:17:48 -04:00