Add a Name.get_parent_stmt() function.
This commit is contained in:
1 parent
6c07c7acfe
commit
99116cdcb7
3 files changed
+13
-7
No files matched your search
+1
-1
@@ -154,7 +154,7 @@ class BaseDefinition(object):
|
||||
if isinstance(stripped, iterable.Array):
|
||||
return 'instance'
|
||||
string = type(stripped).__name__.lower().replace('wrapper', '')
|
||||
if string == 'exprstatement':
|
||||
if string == 'exprstmt':
|
||||
return 'statement'
|
||||
else:
|
||||
return string
|
||||
|
||||
Reference in new issue
Block a user