Skip to content

Commit 81f1665

Browse files
committed
Rename parameter to cls as the standard
1 parent ecc5670 commit 81f1665

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ast_/tree.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,15 @@ def prependChild(self, node):
151151
self.children.insert(0, node)
152152

153153
@classmethod
154-
def makenode(clss, symbol, *nexts):
154+
def makenode(cls, symbol, *nexts):
155155
""" Stores the symbol in an AST instance,
156156
and left and right to the given ones
157157
"""
158-
result = clss(symbol)
158+
result = cls(symbol)
159159
for i in nexts:
160160
if i is None:
161161
continue
162-
if not isinstance(i, clss):
162+
if not isinstance(i, cls):
163163
raise NotAnAstError(i)
164164
result.appendChild(i)
165165

0 commit comments

Comments
 (0)