diff options
author | Mike Sinkovsky <msink@permonline.ru> | 2017-01-17 18:13:03 +0500 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-01-18 21:22:47 +0200 |
commit | 969be1f6797551a5e9be1a5ea2133fb1c59220d7 (patch) | |
tree | 2f9b596fba0c740c154b52f99368bdd4ad48c2b7 /tools | |
parent | 1d177fb1271b4198aa1ff652666a4244ec23a1c6 (diff) | |
download | meson-969be1f6797551a5e9be1a5ea2133fb1c59220d7.tar.gz |
cleanup: Remove redundant parentheses
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/cmake2meson.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/cmake2meson.py b/tools/cmake2meson.py index 9f2c7c00f..80bcaa4a0 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() |