Utilities/py3flakes/checker.py

branch
5_2_x
changeset 2090
a74544498a96
parent 1534
e5b76a5eda84
child 2089
d23ab571d2b9
equal deleted inserted replaced
2086:5b7dad2b27ec 2090:a74544498a96
281 self.futuresAllowed = False 281 self.futuresAllowed = False
282 nodeType = node.__class__.__name__.upper() 282 nodeType = node.__class__.__name__.upper()
283 try: 283 try:
284 handler = getattr(self, nodeType) 284 handler = getattr(self, nodeType)
285 handler(node) 285 handler(node)
286 except AttributeError:
287 print(nodeType, "not supported yet. Please report this.")
286 finally: 288 finally:
287 self.nodeDepth -= 1 289 self.nodeDepth -= 1
288 if self.traceTree: 290 if self.traceTree:
289 print(' ' * self.nodeDepth + 'end ' + node.__class__.__name__) 291 print(' ' * self.nodeDepth + 'end ' + node.__class__.__name__)
290 292

eric ide

mercurial