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

This commit is contained in:
Kurt B. Kaiser 2002-12-20 17:18:03 +00:00
parent 8ed8320827
commit 83a3560527
1 changed files with 2 additions and 1 deletions

View File

@ -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: