Skip to content

Commit f20346f

Browse files
committed
Make method static
Also removes useless parenthesis
1 parent 62c59bb commit f20346f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

zxbpp/prepro/macrocall.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def __init__(self, lineno, table, id_, args=None):
2121
self.callargs = args
2222
self.lineno = lineno
2323

24-
def eval(self, arg):
24+
@staticmethod
25+
def eval(arg):
2526
""" Evaluates a given argument. The token will be returned by default
2627
"as is", except if it's a macrocall. In such case it will be evaluated
2728
recursively.
@@ -82,7 +83,7 @@ def __call__(self, symbolTable=None):
8283

8384
tmp = ID(TABLE)
8485
if '\n' in tmp:
85-
tmp += '\n#line %i\n' % (self.lineno)
86+
tmp += '\n#line %i\n' % self.lineno
8687

8788
return tmp
8889

0 commit comments

Comments
 (0)