summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerence Honles <terence@honles.com>2021-05-20 07:47:19 -0700
committerGitHub <noreply@github.com>2021-05-20 07:47:19 -0700
commitda197ee94e791640d82940396c19d2d82ca8defb (patch)
tree4ea83b27e88a71b84ee6138716366fe02951254b
parentf3b1b44bf3d2d5927004fa1c2fcf1ab2def816b9 (diff)
downloadpyflakes-da197ee94e791640d82940396c19d2d82ca8defb.tar.gz
remove old and unused "tracing" code (#625)
-rw-r--r--pyflakes/checker.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/pyflakes/checker.py b/pyflakes/checker.py
index 48d3841..135ad33 100644
--- a/pyflakes/checker.py
+++ b/pyflakes/checker.py
@@ -868,7 +868,6 @@ class Checker(object):
nodeDepth = 0
offset = None
- traceTree = False
_in_annotation = AnnotationState.NONE
_in_deferred = False
@@ -1393,8 +1392,6 @@ class Checker(object):
if self.offset and getattr(node, 'lineno', None) is not None:
node.lineno += self.offset[0]
node.col_offset += self.offset[1]
- if self.traceTree:
- print(' ' * self.nodeDepth + node.__class__.__name__)
if self.futuresAllowed and not (isinstance(node, ast.ImportFrom) or
self.isDocstring(node)):
self.futuresAllowed = False
@@ -1406,8 +1403,6 @@ class Checker(object):
handler(node)
finally:
self.nodeDepth -= 1
- if self.traceTree:
- print(' ' * self.nodeDepth + 'end ' + node.__class__.__name__)
_getDoctestExamples = doctest.DocTestParser().get_examples