aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorMike Sinkovsky <msink@permonline.ru>2017-01-17 18:13:03 +0500
committerJussi Pakkanen <jpakkane@gmail.com>2017-01-18 21:22:47 +0200
commit969be1f6797551a5e9be1a5ea2133fb1c59220d7 (patch)
tree2f9b596fba0c740c154b52f99368bdd4ad48c2b7 /tools
parent1d177fb1271b4198aa1ff652666a4244ec23a1c6 (diff)
downloadmeson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.zip
meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.tar.gz
meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.tar.bz2
cleanup: Remove redundant parentheses
Diffstat (limited to 'tools')
-rwxr-xr-xtools/cmake2meson.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py
index 9f2c7c0..80bcaa4 100755
--- a/tools/cmake2meson.py
+++ b/tools/cmake2meson.py
@@ -24,7 +24,7 @@ class Token:
self.lineno = 0
self.colno = 0
-class Statement():
+class Statement:
def __init__(self, name, args):
self.name = name
self.args = args
@@ -48,7 +48,7 @@ class Lexer:
line_start = 0
loc = 0
col = 0
- while(loc < len(code)):
+ while loc < len(code):
matched = False
for (tid, reg) in self.token_specification:
mo = reg.match(code, loc)
@@ -83,7 +83,7 @@ class Lexer:
if not matched:
raise RuntimeError('Lexer got confused line %d column %d' % (lineno, col))
-class Parser():
+class Parser:
def __init__(self, code):
self.stream = Lexer().lex(code)
self.getsym()