diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-09 11:51:27 (GMT) |
commit | fc170b1fd5db978f4e8d4c23c138a7b59df681ec (patch) | |
tree | 3c73ffcba8f5ece8c64a086a362b7fbe65368048 /Lib/lib-old/codehack.py | |
parent | d8c628bd59f70b5389c39fd9e6a15cb3e2d46f27 (diff) | |
download | cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.zip cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.gz cpython-fc170b1fd5db978f4e8d4c23c138a7b59df681ec.tar.bz2 |
String method conversion.
Diffstat (limited to 'Lib/lib-old/codehack.py')
-rw-r--r-- | Lib/lib-old/codehack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-old/codehack.py b/Lib/lib-old/codehack.py index 6453db5..52ac6be 100644 --- a/Lib/lib-old/codehack.py +++ b/Lib/lib-old/codehack.py @@ -48,7 +48,7 @@ def getcodename(co): 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)): |