summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'