summaryrefslogtreecommitdiff
path: root/ply
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2017-01-31 10:09:12 -0600
committerDavid Beazley <dave@dabeaz.com>2017-01-31 10:09:12 -0600
commit69de7b84c8bfb2bf33853b00409af93008362dda (patch)
tree6b1cb38a2c21aa0055f8c4045450f2af74aef1b5 /ply
parentb659dab56b5488b85f083c677bf1e4a96c5a7512 (diff)
downloadply-69de7b84c8bfb2bf33853b00409af93008362dda.tar.gz
Minor patch up for re flags
Diffstat (limited to 'ply')
-rw-r--r--ply/lex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ply/lex.py b/ply/lex.py
index 25d73b3..744d554 100644
--- a/ply/lex.py
+++ b/ply/lex.py
@@ -861,7 +861,7 @@ class LexerReflect(object):
# Build all of the regular expression rules from definitions in the supplied module
# -----------------------------------------------------------------------------
def lex(module=None, object=None, debug=False, optimize=False, lextab='lextab',
- reflags=re.VERBOSE, nowarn=False, outputdir=None, debuglog=None, errorlog=None):
+ reflags=int(re.VERBOSE), nowarn=False, outputdir=None, debuglog=None, errorlog=None):
if lextab is None:
lextab = 'lextab'