mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 21:04:29 +08:00
Remove dead code in get_definition. Fixes #4.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user