summaryrefslogtreecommitdiff
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
parentb659dab56b5488b85f083c677bf1e4a96c5a7512 (diff)
downloadply-69de7b84c8bfb2bf33853b00409af93008362dda.tar.gz
Minor patch up for re flags
-rw-r--r--.travis.yml3
-rw-r--r--ply/lex.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 874e3df..8fdcc6b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,9 +2,10 @@ language: python
python:
- "2.6"
- "2.7"
- - "3.2"
- "3.3"
- "3.4"
+ - "3.5"
+ - "3.6"
install:
- "pip install . "
script: "cd test && python testlex.py && python testyacc.py"
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'