1288 Commits

Author SHA1 Message Date
Kurt B. Kaiser
75c9877789 Backport Python Patches 769142, 776062 from 2.3 Lib/idlelib:
CallTip error when docstring contains only \n and/or \t
2003-07-23 16:25:43 +00:00
Neal Norwitz
91bde2bf99 Backport:
SF bug 753592, websucker

Pass the proper variable when the user supplies a directory.
2003-07-01 04:17:25 +00:00
Raymond Hettinger
b78e3dd94e Backport 1.45: Failed module import was dumping to the console instead
of creating a nice dialog window.
2003-02-21 04:18:32 +00:00
Neal Norwitz
ed55ba92a7 SF # 627900, Bytecode copy bug in freeze
Pass co_freevars and co_cellvars to new.code().
2002-11-12 23:10:31 +00:00
Fred Drake
7b22a1a2de Handle the Content-Type header a little more appropriately: if it
contains options, drop them to get the major/minor content type.
Modified from the supplied patch to support more whitespace variation.
Closes SF patch #613605.
2002-11-12 22:21:01 +00:00
Fred Drake
a84416d773 Fix typo only present in the r22-maint branch. 2002-11-08 07:42:58 +00:00
Raymond Hettinger
547a9b00c8 Clarify what it means to require Python 1.5.2. 2002-11-08 05:48:11 +00:00
Raymond Hettinger
b3e15fe70e Backport 1.43:
Extended IDLE's open module menu item to handle hierarchical module names.
Closes SF patch 600152.
2002-10-05 03:58:16 +00:00
Michael W. Hudson
4600bc0f1b Backport mhammond's 1.6:
Patch 574531/Bug 574570 - allow freeze on windows to use the _winreg
extension.
2002-09-30 10:31:13 +00:00
Guido van Rossum
64a9d8a0f6 Revert Raymond H's checkin. That change depends on a new feature in
2.3, support for source code encodings, so it shouldn't be backported
(no matter how attractive the checkin msg sounded).

Please, try to *use* IDLE before committing changes!
2002-09-24 17:52:05 +00:00
Raymond Hettinger
e780c12cdf Backport:
The test for re.engine was misfiring because re.engine is no longer
defined and the default was "pre" instead of "sre".  Give up on 1.5.2
compatibility, hardcode the sre solution.  However, this XXX comment
still applies, AFAIK:
        # XXX This code depends on internals of the regular expression
        # engine!  There's no standard API to do a substitution when you
        # have already found the match.  One should be added.
2002-09-23 14:37:00 +00:00
Raymond Hettinger
c8b4c9fe1a Backport:
Convert characters from the locale's encoding on output.
Reject characters outside the locale's encoding on input.
2002-09-23 14:30:24 +00:00
Raymond Hettinger
1124a3b50b Backport patch: Use ascii_letters to avoid UnicodeErrors. 2002-09-23 14:23:15 +00:00
Raymond Hettinger
30d4ceb277 Backport patch #540583: Open MS Help Docs if available. 2002-09-23 14:17:15 +00:00
Raymond Hettinger
1d429f2464 Backport:
Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart
indent error

Use // where int division is intended.
2002-09-23 14:06:24 +00:00
Raymond Hettinger
ff5fc28313 Backport patch 543222. Disable script bindings in shell window. 2002-09-23 14:01:40 +00:00
Raymond Hettinger
ebba7d2937 Backport patches 558535. The standard Windows binding for Edit Select All
is Control-A rather than Alt-A.
2002-09-23 13:44:45 +00:00
Michael W. Hudson
efe401cc56 backport tim_one's checkin of
revision 1.4 of CallTipWindow.py

SF bug 546078:  IDLE calltips cause application error.
Assorted crashes on Windows and Linux when trying to display a very
long calltip, most likely a Tk bug.  Wormed around by clamping the
calltip display to a maximum of 79 characters (why 79? why not ...).

Bugfix candidate, for all Python releases.
2002-08-23 15:53:05 +00:00
Anthony Baxter
1b2f63d2a7 backport gvanrossum's patch:
Provisional fix for writefile() [SF bug # 541730].

The problem was that an exception can occur in the text.get() call or
in the write() call, when the text buffer contains non-ASCII
characters.  This causes the previous contents of the file to be lost.

The provisional fix is to call str(self.text.get(...)) *before*
opening the file, so that if the exception occurs, we never open the
file.

Two orthogonal better solutions have to wait for policy decisions:

1. We could try to encode the data as Latin-1 or as UTF-8; but that
   would require IDLE to grow a notion of file encoding which requires
   more thought.

2. We could make backups before overwriting a file.  This requires
   more thought because it needs to be fast and cross-platform and
   configurable.


Original patches were:
python/dist/src/Tools/idle/IOBinding.py:1.6
2002-04-18 05:08:28 +00:00
Anthony Baxter
76108086bf backport akuchling's patch:
Use 2.1's .hexdigest() method
2002-04-18 03:47:40 +00:00
Michael W. Hudson
7742c3d40d I presume most of the fixes currently hitting the tree should go into
2.2.1, but it would be nice if people remembered to comment on their
fixes' applicability!

backport akuchling's checkin of
    revision 1.26 of webchecker.py

[Bug #512799] urllib.splittype() returns a 2-tuple.  (Reported by seb bacon)
2002-03-11 10:04:07 +00:00
Guido van Rossum
92afd9ee75 Merge bugfix:
Patch #520483: Make IDLE OutputWindow handle Unicode.
2.2.1 candidate.
2002-02-28 22:59:02 +00:00
Guido van Rossum
82953b1f84 Backport of a useful trunk fix:
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().
2002-02-25 23:16:45 +00:00
Michael W. Hudson
a9793cb94a backport tim_one's checkin of
revision 1.3 of reindent.py

SF bug #497839:  reindent chokes on empty first lines.
Reindenter.run():  copy over initial all-whitespace lines (if any, and
after normalizing to remove trailing blanks and tabs).
Bugfix candidate.
2002-02-22 13:30:17 +00:00
Michael W. Hudson
abab74038d It's merge time!
Tim sez "Bugfix candidate:  the current state of AutoIdent.py
should be in 2.2.1."
2002-01-28 15:10:52 +00:00