diff options
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)): |