mirror of
https://github.com/python/cpython.git
synced 2025-08-29 05:05:03 +00:00
String method conversion.
This commit is contained in:
parent
d8c628bd59
commit
fc170b1fd5
19 changed files with 58 additions and 79 deletions
|
@ -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)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue