diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-12-20 17:18:03 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-12-20 17:18:03 (GMT) |
commit | 83a3560527f9e62bce6adbc12b8ff6b57be8b1ac (patch) | |
tree | c37e668269e7b20d799923dfabda1606f20a6864 /Lib/idlelib/EditorWindow.py | |
parent | 8ed8320827af7f1a3b1e64157a8c6a24837c7936 (diff) | |
download | cpython-83a3560527f9e62bce6adbc12b8ff6b57be8b1ac.zip cpython-83a3560527f9e62bce6adbc12b8ff6b57be8b1ac.tar.gz cpython-83a3560527f9e62bce6adbc12b8ff6b57be8b1ac.tar.bz2 |
"'foo' in str" not implemented in Python 2.2, only single character lookup
Diffstat (limited to 'Lib/idlelib/EditorWindow.py')
-rw-r--r-- | Lib/idlelib/EditorWindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index 4bd766d..5368f27 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -283,6 +283,7 @@ class EditorWindow: tkMessageBox.showinfo('Advice', "Don't Panic!", master=self.text) def view_readme(self, event=None): + print>>sys.__stderr__, "** __file__: ", __file__ fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'README.txt') textView.TextViewer(self.top,'IDLEfork - README',fn) @@ -438,7 +439,7 @@ class EditorWindow: f.close() except IOError: return False - return line.startswith('#!') and 'python' in line + return line.startswith('#!') and line.find('python') >= 0 def close_hook(self): if self.flist: |