diff --git a/Lib/idlelib/PyParse.py b/Lib/idlelib/PyParse.py index ea3cc27796f..d200b6cb2dd 100644 --- a/Lib/idlelib/PyParse.py +++ b/Lib/idlelib/PyParse.py @@ -120,7 +120,7 @@ class Parser: # strings don't have a .translate() method that supports # deletechars. uniphooey = s - str = [] + s = [] push = s.append for raw in map(ord, uniphooey): push(raw < 127 and chr(raw) or "x")