Commit Graph

77690 Commits

Author SHA1 Message Date
Antoine Pitrou c06634acfc Issue #20435: Fix _pyio.StringIO.getvalue() to take into account newline translation settings. 2014-02-02 23:37:29 +01:00
Ned Deily 1964d5bdf7 Issue #19990: Install test/imghdrdata. 2014-02-02 13:59:26 -08:00
Antoine Pitrou 8a2e22ef35 Issue #20423: fix documentation of io.StringIO's newline parameter 2014-02-02 22:48:25 +01:00
Serhiy Storchaka 15b67d7d5b Issue #19320: Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5. 2014-02-02 23:04:06 +02:00
Benjamin Peterson b898b4f9e9 use with statement to ensure zipfile is always closed (closes #20102) 2014-02-02 15:30:22 -05:00
Terry Jan Reedy 67908e9a76 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:24 -05:00
Ezio Melotti 5a88853bdc #20288: fix handling of invalid numeric charrefs in HTMLParser. 2014-02-01 21:20:22 +02:00
Mark Dickinson 383952d52c Issue #19683: Add __closure__ and other missing attributes to function docs. 2014-02-01 16:32:40 +00:00
Zachary Ware c82e27bf9a Fix unfinished thought in xml overview page. Suggested by Bo Bayles on docs@. 2014-01-31 11:27:24 -06:00
Terry Jan Reedy 3ac26c1bd2 Idle test: 2nd try at suppressing compile time warning (hint by Nick Coghlan). 2014-01-30 21:37:24 -05:00
Vinay Sajip 9cdf2d0338 Issue #20444: Reduced code duplication. Thanks to dongwm for the report and patch. 2014-01-30 20:22:01 +00:00
Terry Jan Reedy 0a600cf235 Idlelib & buildbots: suppress py3 deprecation message even if enabled. 2014-01-29 14:42:32 -05:00
Serhiy Storchaka 47cb38cdcc Backported a test for lone surrogates support in io.StringIO. 2014-01-29 11:49:13 +02:00
Terry Jan Reedy 1625272444 Silence deprecation warning in sunau.py 2014-01-29 00:15:59 -05:00
Terry Jan Reedy 8119c13fe4 Idlelib: silence two buildbot Deprecation Warnings with better code. 2014-01-28 23:13:35 -05:00
Gregory P. Smith 9ca520a09c Remove unneeded use of globals() and locals() in test on imports
introduced with the issue19081 tests.
2014-01-28 00:29:46 -08:00
Gregory P. Smith aaef0e7821 Remove inaccurate comment and a the related recently added
Py_VerboseFlag print that can never be triggered.

prefix[0] is always equal to 0 at this point in the code.
2014-01-27 22:43:25 -08:00
Gregory P. Smith 1a47955255 Refactor the new test for issue19081 to exec import statements into a
test_ns dict instead of the actual globals() and locals().  Suggested
after review by Thomas Wouters.
2014-01-27 22:06:51 -08:00
Serhiy Storchaka 31f5121275 Issue #19456: ntpath.join() now joins relative paths correctly when a drive
is present.
2014-01-27 23:14:51 +02:00
Gregory P. Smith 027ab39014 Issue #19081: Remove the zipimporter.files reference as the zip TOC
caches are module global in the zip_directory_cache. When it is
updated due to a changed zip file, all zipimporter instances need to
see the same updates TOC cache.  This fixes the bug for the overlooked
submodule import case from the earlier round of changes.  Includes
tests that would fail otherwise.

It also refactors zipimporter_init in the process to make it a bit
easier to read and understand.  Less reuse of the same variable for
multiple purposes and the local path buffer is malloc'ed instead
of consuming a large MAXPATHLEN+2 chunk stack space.
2014-01-27 00:15:10 -08:00
Terry Jan Reedy 1d9b9215f0 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:17 -05:00
Terry Jan Reedy e7ec1be8c7 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:25 -05:00
Terry Jan Reedy 62ea43cc06 Merge heads. 2014-01-26 20:10:56 -05:00
Terry Jan Reedy e7a72a194d Issue #20338: Increase allowed tip width slightly and wrap long signagure lines.
Original patch by Serhiy Storchaka.
2014-01-26 19:55:07 -05:00
Serhiy Storchaka 30d68c66e3 Issue #19990: Added tests for the imghdr module.
Based on patch by Claudiu Popa.
2014-01-26 23:48:20 +02:00
Serhiy Storchaka 4a44f8791c Fixed a bug in previous changeset: StreamReader returned '' instead of u''. 2014-01-26 21:19:59 +02:00
Serhiy Storchaka 2403a787b9 Issue #8260: The read(), readline() and readlines() methods of
codecs.StreamReader returned incomplete data when were called after
readline() or read(size).  Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:20:24 +02:00
Benjamin Peterson 072cd0c884 update sphinx url 2014-01-25 13:27:06 -05:00
Benjamin Peterson 72c081d1e7 linkify 2014-01-25 13:26:18 -05:00
Serhiy Storchaka 1adbacfd1c Issue #20331: Fixed possible FD leaks in various modules:
SimpleHTTPServer, imghdr, mailcap, mimetypes, xml.etree.
2014-01-25 19:42:27 +02:00
Benjamin Peterson d8be9feb45 update hosting faq 2014-01-24 23:59:57 -05:00
Benjamin Peterson 0ac0eadf8d new plan: just remove typecasts (closes #20374) 2014-01-24 11:44:16 -05:00
Benjamin Peterson ce75105e10 use new readline function types (closes #20374) 2014-01-24 00:32:12 -05:00
Serhiy Storchaka eb7ef94166 Third attempt to fix test_user_command on OpenSolaris. 2014-01-23 16:08:35 +02:00
Serhiy Storchaka dc97667254 Other attempt to fix test_user_command on OpenSolaris. 2014-01-23 14:38:44 +02:00
Serhiy Storchaka 83515ecf42 Try to fix test_user_command on OpenSolaris where floats can have different
string representation in Tcl and Python.
2014-01-23 11:03:02 +02:00
Serhiy Storchaka 29d8e856b4 Added test_user_command in test_tcl.
It tests the convertion Tcl values to Python values when Tcl calls a command
implemented on Python. Currently all values are passed as strings.
2014-01-23 09:42:46 +02:00
Terry Jan Reedy 5924365528 Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.
2014-01-23 00:36:37 -05:00
Richard Oudkerk e8a57b98ec Issue #14548: Make multiprocessing finalizers check pid before
running to cope with possibility of gc running just after fork.
(Backport from 3.x.)
2014-01-23 00:11:04 +00:00
Stefan Krah 70fdd79c92 Fix test failures --without-threads. 2014-01-22 13:18:09 +01:00
Terry Jan Reedy b190b33f64 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:13 -05:00
Terry Jan Reedy 82c48e098a Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such 3.x bytes (which is why 5).
Based on patch by Serhiy Storchaka.
2014-01-21 20:45:03 -05:00
Florent Xicluna edfd9addf6 Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError. 2014-01-22 01:33:59 +01:00
Stefan Krah 70df667dfe Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts. 2014-01-21 23:05:52 +01:00
Terry Jan Reedy 21334e72fd Issue #16630: Make Idle calltips work even when __getattr__ raises.
Initial patch by Roger Serwy.
2014-01-21 15:36:36 -05:00
Georg Brandl 3ce5255a07 Fix markup error. 2014-01-21 19:21:18 +01:00
Terry Jan Reedy 0e2793c413 Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.
I do not expect a problem in 2.7, but backported this anyway, 'in case'.
2014-01-21 03:07:43 -05:00
Terry Jan Reedy 598295c63c Issue #21222: Whitespace 2014-01-21 00:31:07 -05:00
Terry Jan Reedy 02fd1fd7fd Issue #20122: Idlelib: Move tests in 3.x CallTips.py to test_calltips.py.
For 2.7 backport, fix get_arg_spec as needed to make expanded tests pass.
2014-01-21 00:26:10 -05:00
Serhiy Storchaka 49259359ee Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:09 +02:00