From 3a506b44ac452b951d8b1d2929049f73e73a496b Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 5 Sep 2017 08:58:10 +0200 Subject: [PATCH] Remove dead code in get_definition. Fixes #4. --- parso/python/tree.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/parso/python/tree.py b/parso/python/tree.py index 096387a..583e2a2 100644 --- a/parso/python/tree.py +++ b/parso/python/tree.py @@ -214,11 +214,6 @@ class Name(_LeafWithoutNewlines): return node return None - if type_ in (): - if self in node.get_defined_names(): - return node - return None - if type_ == 'except_clause': # TODO in Python 2 this doesn't work correctly. See grammar file. # I think we'll just let it be. Python 2 will be gone in a few