mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-15 05:41:06 +08:00
Fix Python 3 syntax error
This commit is contained in:
1 parent
71d5b0ac67
commit
5a29fecfb2
1 file changed
+1
-1
+1
-1
@@ -299,7 +299,7 @@ class Definition(BaseDefinition):
|
||||
elif isinstance(d, pr.Import):
|
||||
try:
|
||||
return d.get_defined_names()[0].names[-1]
|
||||
except AttributeError, IndexError:
|
||||
except (AttributeError, IndexError):
|
||||
return None
|
||||
elif isinstance(d, pr.Statement):
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user