bugfix
This commit is contained in:
parent
27ea6eb99e
commit
4207f2c4bb
@ -1,8 +1,12 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
def current_fileno():
|
def current_fileno():
|
||||||
with open(__file__, 'r') as f:
|
fn = './t.txt'
|
||||||
return f.fileno()
|
f = open(fn, 'w')
|
||||||
|
ret = f.fileno()
|
||||||
|
f.close()
|
||||||
|
os.remove(fn)
|
||||||
|
return ret
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
for i in range(1000):
|
for i in range(1000):
|
||||||
|
Loading…
Reference in New Issue
Block a user