Fix a resource warning
This commit is contained in:
parent
ce50043048
commit
5b3ac259ce
@ -55,8 +55,9 @@ def main() -> None:
|
|||||||
write(line)
|
write(line)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
p.send_signal(signal.SIGINT)
|
p.send_signal(signal.SIGINT)
|
||||||
p.stdout.close()
|
|
||||||
except EOFError:
|
except EOFError:
|
||||||
|
pass
|
||||||
|
finally:
|
||||||
p.stdout.close()
|
p.stdout.close()
|
||||||
raise SystemExit(p.wait())
|
raise SystemExit(p.wait())
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user