We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecc5670 commit 81f1665Copy full SHA for 81f1665
1 file changed
ast_/tree.py
@@ -151,15 +151,15 @@ def prependChild(self, node):
151
self.children.insert(0, node)
152
153
@classmethod
154
- def makenode(clss, symbol, *nexts):
+ def makenode(cls, symbol, *nexts):
155
""" Stores the symbol in an AST instance,
156
and left and right to the given ones
157
"""
158
- result = clss(symbol)
+ result = cls(symbol)
159
for i in nexts:
160
if i is None:
161
continue
162
- if not isinstance(i, clss):
+ if not isinstance(i, cls):
163
raise NotAnAstError(i)
164
result.appendChild(i)
165
0 commit comments