mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
I updated test data accordingly and removed now obsolete tests about skipping preceding comments.
15 lines
298 B
Python
15 lines
298 B
Python
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 |