mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-22 06:20:54 +07:00
10 lines
325 B
Python
10 lines
325 B
Python
def foo():
|
|
for arg in sys.argv[1:]:
|
|
try:
|
|
f = open(arg, 'r')
|
|
except IOError:
|
|
print('cannot open', arg)
|
|
else:
|
|
<selection>length = len(f.readlines()) #<---extract something from here
|
|
print("hi from else")</selection>
|
|
#anything else you need |