summaryrefslogtreecommitdiff
path: root/third_party/waf/waflib/Tools/flex.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/waf/waflib/Tools/flex.py')
-rw-r--r--third_party/waf/waflib/Tools/flex.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/third_party/waf/waflib/Tools/flex.py b/third_party/waf/waflib/Tools/flex.py
index 1a115d3cbd7..11191af3447 100644
--- a/third_party/waf/waflib/Tools/flex.py
+++ b/third_party/waf/waflib/Tools/flex.py
@@ -5,7 +5,7 @@
#!/usr/bin/env python
# encoding: utf-8
# John O'Meara, 2006
-# Thomas Nagy, 2006-2016 (ita)
+# Thomas Nagy, 2006-2018 (ita)
"""
The **flex** program is a code generator which creates C or C++ files.
@@ -26,7 +26,8 @@ def flexfun(tsk):
bld = tsk.generator.bld
wd = bld.variant_dir
def to_list(xx):
- if isinstance(xx, str): return [xx]
+ if isinstance(xx, str):
+ return [xx]
return xx
tsk.last_cmd = lst = []
lst.extend(to_list(env.FLEX))
@@ -62,3 +63,4 @@ def configure(conf):
if re.search (r"\\msys\\[0-9.]+\\bin\\flex.exe$", conf.env.FLEX[0]):
# this is the flex shipped with MSYS
conf.env.FLEX_MSYS = True
+