Sign in
android
/
platform
/
tools
/
idea
/
2250e7e055295bee73366d360d15ea0270573ef6
/
.
/
python
/
testData
/
inspections
/
PyUnboundLocalVariableInspection
/
UnboundVariableFunctionCall.py
blob: 6a39f123b805dc4da3f657324c7de30f2d53e4d9 [
file
] [
log
] [
blame
]
def
f
(
g
,
h
,
x
):
if
x
>
1
:
z
=
g
elif
x
:
z
=
h
# local z may be unbound, inspection fails only when z is in function call
return
<
warning descr
=
"Local variable 'z' might be referenced before assignment"
>
z
</
warning
>()
#fail