From 969be1f6797551a5e9be1a5ea2133fb1c59220d7 Mon Sep 17 00:00:00 2001 From: Mike Sinkovsky Date: Tue, 17 Jan 2017 18:13:03 +0500 Subject: cleanup: Remove redundant parentheses --- tools/cmake2meson.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tools') 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() -- cgit v1.1