* cleanup

This commit is contained in:
Jean-Louis Fuchs
2013-12-06 00:11:38 +01:00
parent 099a6c2697
commit ced926b7f0

View File

@@ -34,7 +34,7 @@ class Token(object):
# Backward compatibility
def __getitem__(self, key):
# Builds the same structure as tuple used to have
if key == 0:
if key == 0:
return self.token_type
elif key == 1:
return self.token
@@ -46,7 +46,7 @@ class Token(object):
# Backward compatibility
def __setitem__(self, key, value):
# setitem analogous to
if key == 0:
if key == 0:
self.token_type = value
elif key == 1:
self.token = value