mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-08 22:05:18 +08:00
exception while using else as a scope
This commit is contained in:
1 parent
ee65764c3a
commit
743d064e6d
2 files changed
+9
-8
No files matched your search
@@ -11,12 +11,12 @@ foo(1)
|
||||
# Exceptions are not analyzed. So check both if branches
|
||||
def try_except(x):
|
||||
try:
|
||||
if 1.0:
|
||||
if 0:
|
||||
return 1
|
||||
else:
|
||||
return ''
|
||||
except AttributeError:
|
||||
return 1.0
|
||||
|
||||
#? int() float()
|
||||
#? float() str()
|
||||
try_except(1)
|
||||
Reference in new issue
Block a user