summaryrefslogtreecommitdiffstats
path: root/util/cmake/qmake_parser.py
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2020-07-30 15:56:37 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2020-07-31 12:55:33 +0200
commit4ed483b0e24b410b6bb240b48b4ad71e67877dc2 (patch)
tree1f20cd85ce81e71bfe759f87b607ae54a973a11f /util/cmake/qmake_parser.py
parentca103f357c5dde9d39dc1d42ef53f02b5e632d43 (diff)
CMake: pro2cmake: Fix errors reported by flake8 and mypy
Change-Id: I842c0f8d7ec1d173fa1dbd74e769e2c370e70518 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'util/cmake/qmake_parser.py')
-rw-r--r--util/cmake/qmake_parser.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/cmake/qmake_parser.py b/util/cmake/qmake_parser.py
index 2fabfe3f01..1b49ac7b58 100644
--- a/util/cmake/qmake_parser.py
+++ b/util/cmake/qmake_parser.py
@@ -71,9 +71,9 @@ def fixup_comments(contents: str) -> str:
return contents
-def flatten_list(l):
+def flatten_list(input_list):
""" Flattens an irregular nested list into a simple list."""
- for el in l:
+ for el in input_list:
if isinstance(el, collections.abc.Iterable) and not isinstance(el, (str, bytes)):
yield from flatten_list(el)
else:
@@ -227,7 +227,7 @@ class QmakeParser:
Option = add_element("Option", pp.Keyword("option") + CallArgs("option"))
RequiresCondition = add_element("RequiresCondition", pp.originalTextFor(pp.nestedExpr()))
- def parse_requires_condition(s, l, t):
+ def parse_requires_condition(s, l_unused, t):
# The following expression unwraps the condition via the additional info
# set by originalTextFor.
condition_without_parentheses = s[t._original_start + 1 : t._original_end - 1]