[Python-checkins] CVS: python/dist/src/Lib/lib-old codehack.py,1.4,1.5
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 03:26:24 -0800
Update of /cvsroot/python/python/dist/src/Lib/lib-old
In directory usw-pr-cvs1:/tmp/cvs-serv15512
Modified Files:
codehack.py
Log Message:
String method conversion.
Index: codehack.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/lib-old/codehack.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** codehack.py 1997/07/18 16:48:30 1.4
--- codehack.py 2001/02/09 11:26:22 1.5
***************
*** 49,53 ****
lineno = ord(code[1]) | ord(code[2]) << 8
line = linecache.getline(filename, lineno)
! words = string.split(line)
if len(words) >= 2 and words[0] in ('def', 'class'):
name = words[1]
--- 49,53 ----
lineno = ord(code[1]) | ord(code[2]) << 8
line = linecache.getline(filename, lineno)
! words = line.split()
if len(words) >= 2 and words[0] in ('def', 'class'):
name = words[1]