diff options
Diffstat (limited to 'Lib/keyword.py')
-rwxr-xr-x | Lib/keyword.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/keyword.py b/Lib/keyword.py index c897081..a0295e2 100755 --- a/Lib/keyword.py +++ b/Lib/keyword.py @@ -46,11 +46,7 @@ kwlist = [ #--end keywords-- ] -kwdict = {} -for keyword in kwlist: - kwdict[keyword] = 1 - -iskeyword = kwdict.has_key +iskeyword = frozenset(kwlist).__contains__ def main(): import sys, re |