Skip to content

Commit

Permalink
Added update for python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
VPanjeta committed Oct 28, 2018
1 parent a65669a commit bc38604
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modiscript/lexer.py
@@ -1,5 +1,6 @@
from utils import *
import re
import sys

mitrooon = re.compile(r'^mith?roo?o?n?$')
acche = re.compile(r'^ac[ch]?hee?$')
Expand Down Expand Up @@ -192,4 +193,6 @@ def _analyze_lexemes(self):
yield Lexer.lexeme(*lex)
self.stack = []
self.clear = False
raise StopIteration
if sys.version_info >= (3,7):
return
raise StopIteration()

0 comments on commit bc38604

Please sign in to comment.