Remove dead code in get_definition. Fixes #4.

This commit is contained in:
Dave Halter
2017-09-05 08:58:10 +02:00
parent bae36f8ab0
commit 3a506b44ac

View File

@@ -214,11 +214,6 @@ class Name(_LeafWithoutNewlines):
return node return node
return None return None
if type_ in ():
if self in node.get_defined_names():
return node
return None
if type_ == 'except_clause': if type_ == 'except_clause':
# TODO in Python 2 this doesn't work correctly. See grammar file. # 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 # I think we'll just let it be. Python 2 will be gone in a few