Skip to content

Commit da197ee

Browse files
remove old and unused "tracing" code (#625)
1 parent f3b1b44 commit da197ee

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pyflakes/checker.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -868,7 +868,6 @@ class Checker(object):
868868

869869
nodeDepth = 0
870870
offset = None
871-
traceTree = False
872871
_in_annotation = AnnotationState.NONE
873872
_in_deferred = False
874873

@@ -1393,8 +1392,6 @@ def handleNode(self, node, parent):
13931392
if self.offset and getattr(node, 'lineno', None) is not None:
13941393
node.lineno += self.offset[0]
13951394
node.col_offset += self.offset[1]
1396-
if self.traceTree:
1397-
print(' ' * self.nodeDepth + node.__class__.__name__)
13981395
if self.futuresAllowed and not (isinstance(node, ast.ImportFrom) or
13991396
self.isDocstring(node)):
14001397
self.futuresAllowed = False
@@ -1406,8 +1403,6 @@ def handleNode(self, node, parent):
14061403
handler(node)
14071404
finally:
14081405
self.nodeDepth -= 1
1409-
if self.traceTree:
1410-
print(' ' * self.nodeDepth + 'end ' + node.__class__.__name__)
14111406

14121407
_getDoctestExamples = doctest.DocTestParser().get_examples
14131408

0 commit comments

Comments
 (0)