[svn r38310] assertion to be sure about keywords
--HG-- branch : trunk
This commit is contained in:
parent
0d6d17dc96
commit
248a8d944f
|
@ -14,6 +14,13 @@ class PythonSchema(object):
|
||||||
'global', 'import', 'lambda', 'pass', 'print']
|
'global', 'import', 'lambda', 'pass', 'print']
|
||||||
linejoin = r'\\'
|
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):
|
class Token(object):
|
||||||
data = None
|
data = None
|
||||||
type = 'unknown'
|
type = 'unknown'
|
||||||
|
|
Loading…
Reference in New Issue