Mercurial > cpython-lru_cache-weakref
diff Lib/lib-old/codehack.py @ 16517:eee67a84e5fa legacy-trunk
String method conversion.
| author | Eric S. Raymond <esr@thyrsus.com> |
|---|---|
| date | Fri, 09 Feb 2001 11:51:27 +0000 |
| parents | 91aea1af654f |
| children | 01ae962df885 |
line wrap: on
line diff
--- a/Lib/lib-old/codehack.py Fri Feb 09 11:46:37 2001 +0000 +++ b/Lib/lib-old/codehack.py Fri Feb 09 11:51:27 2001 +0000 @@ -48,7 +48,7 @@ if ord(code[0]) == SET_LINENO: lineno = ord(code[1]) | ord(code[2]) << 8 line = linecache.getline(filename, lineno) - words = string.split(line) + words = line.split() if len(words) >= 2 and words[0] in ('def', 'class'): name = words[1] for i in range(len(name)):
