mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-28 23:23:20 +08:00
Rename _get_definition to get_definition.
This commit is contained in:
1 parent
0e201810fa
commit
fc6202ffb3
1 file changed
+2
-2
@@ -169,9 +169,9 @@ class Name(_LeafWithoutNewlines):
|
||||
"""
|
||||
Returns True if the name is being defined.
|
||||
"""
|
||||
return self._get_definition() is not None
|
||||
return self.get_definition() is not None
|
||||
|
||||
def _get_definition(self, import_name_always=False):
|
||||
def get_definition(self, import_name_always=False):
|
||||
"""
|
||||
Returns None if there's on definition for a name.
|
||||
|
||||
|
||||
Reference in new issue
Block a user