[Idle-dev] CVS: idle EditorWindow.py,1.37,1.38
Kurt B. Kaiser
kbk@users.sourceforge.net
Fri, 20 Dec 2002 09:18:08 -0800
Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv4639
Modified Files:
EditorWindow.py
Log Message:
"'foo' in str" not implemented in Python 2.2, only single character lookup
Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/idlefork/idle/EditorWindow.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** EditorWindow.py 16 Dec 2002 22:25:10 -0000 1.37
--- EditorWindow.py 20 Dec 2002 17:18:03 -0000 1.38
***************
*** 284,287 ****
--- 284,288 ----
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)
***************
*** 439,443 ****
except IOError:
return False
! return line.startswith('#!') and 'python' in line
def close_hook(self):
--- 440,444 ----
except IOError:
return False
! return line.startswith('#!') and line.find('python') >= 0
def close_hook(self):