Sign in
◑
Theme
android
/
platform
/
tools
/
idea
/
studio-master-dev
/
.
/
python
/
testData
/
refactoring
/
extractmethod
/
LocalVarDefinedBeforeModifiedInside.after.py
blob: f1c0131105978a2f4dcf1cd73ca70dc6073927a9 [
file
]
def
main
(
indices
):
foo
=
True
for
i
in
indices
:
foo
,
need_break
=
bar
(
foo
,
i
)
if
need_break
:
break
return
foo
def
bar
(
foo_new
,
i_new
):
need_break
=
False
if
i_new
>
2
:
foo_new
=
False
need_break
=
True
return
foo_new
,
need_break