Removed .format from lex/states.py
This commit is contained in:
parent
047956c59b
commit
0efe3d7c49
@ -185,7 +185,7 @@ class ListeyThing(State):
|
|||||||
return Idle
|
return Idle
|
||||||
|
|
||||||
if char in ")]}":
|
if char in ")]}":
|
||||||
raise LexException("Unexpected closing character: `{0}'".format(char))
|
raise LexException("Unexpected closing character: `%s'" % (char))
|
||||||
|
|
||||||
if char in WHITESPACE:
|
if char in WHITESPACE:
|
||||||
self.commit()
|
self.commit()
|
||||||
@ -266,7 +266,7 @@ class String(State):
|
|||||||
self.nodes.append("\"")
|
self.nodes.append("\"")
|
||||||
return
|
return
|
||||||
|
|
||||||
raise LexException("Unknown modifier: `{0}'".format(char))
|
raise LexException("Unknown modifier: `%s'" % (char))
|
||||||
|
|
||||||
if char == "\"":
|
if char == "\"":
|
||||||
return Idle
|
return Idle
|
||||||
@ -393,4 +393,4 @@ class Hash(State):
|
|||||||
if char == "!":
|
if char == "!":
|
||||||
return Comment
|
return Comment
|
||||||
|
|
||||||
raise LexException("Unknown char (Hash state): `{0}'".format(char))
|
raise LexException("Unknown char (Hash state): `%s'" % (char))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user