mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Patch #1601678: move intern() to sys.intern().
This commit is contained in:
parent
376446dd4e
commit
66a796e5ab
12 changed files with 81 additions and 73 deletions
|
@ -198,7 +198,7 @@ def readwarnings(warningsfile):
|
|||
list = warnings.get(filename)
|
||||
if list is None:
|
||||
warnings[filename] = list = []
|
||||
list.append((int(lineno), intern(what)))
|
||||
list.append((int(lineno), sys.intern(what)))
|
||||
f.close()
|
||||
return warnings
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue