mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
minor edits
This commit is contained in:
parent
5d64d4492f
commit
84b620ea70
1 changed files with 0 additions and 2 deletions
|
@ -17,8 +17,6 @@ def leftmostname(node):
|
|||
"""Attempts to find the first name in the tree."""
|
||||
if isinstance(node, Name):
|
||||
rtn = node.id
|
||||
#elif isinstance(node, (Str, Bytes)):
|
||||
# rtn = node.s
|
||||
elif isinstance(node, (BinOp, Compare)):
|
||||
rtn = leftmostname(node.left)
|
||||
elif isinstance(node, (Attribute, Subscript, Starred, Expr)):
|
||||
|
|
Loading…
Add table
Reference in a new issue