Commit 83a35605 authored by Kurt B. Kaiser's avatar Kurt B. Kaiser

"'foo' in str" not implemented in Python 2.2, only single character lookup

parent 8ed83208
...@@ -283,6 +283,7 @@ class EditorWindow: ...@@ -283,6 +283,7 @@ class EditorWindow:
tkMessageBox.showinfo('Advice', "Don't Panic!", master=self.text) tkMessageBox.showinfo('Advice', "Don't Panic!", master=self.text)
def view_readme(self, event=None): def view_readme(self, event=None):
print>>sys.__stderr__, "** __file__: ", __file__
fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'README.txt') fn=os.path.join(os.path.abspath(os.path.dirname(__file__)),'README.txt')
textView.TextViewer(self.top,'IDLEfork - README',fn) textView.TextViewer(self.top,'IDLEfork - README',fn)
...@@ -438,7 +439,7 @@ class EditorWindow: ...@@ -438,7 +439,7 @@ class EditorWindow:
f.close() f.close()
except IOError: except IOError:
return False return False
return line.startswith('#!') and 'python' in line return line.startswith('#!') and line.find('python') >= 0
def close_hook(self): def close_hook(self):
if self.flist: if self.flist:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment