[svn r38310] assertion to be sure about keywords

--HG--
branch : trunk
This commit is contained in:
hpk 2007-02-09 20:45:04 +01:00
parent 0d6d17dc96
commit 248a8d944f
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,13 @@ class PythonSchema(object):
'global', 'import', 'lambda', 'pass', 'print']
linejoin = r'\\'
def assert_keywords():
from keyword import kwlist
all = PythonSchema.keyword + PythonSchema.alt_keyword
for x in kwlist:
assert x in all
assert_keywords()
class Token(object):
data = None
type = 'unknown'