Close standard streams on exit
Prevents the warning: "ResourceWarning: unclosed file"
This commit is contained in:
parent
cea2da1b3c
commit
1f5dd216bf
@ -619,5 +619,8 @@ def main():
|
||||
for error in errors:
|
||||
logging.warning(error[0] + error[1])
|
||||
|
||||
sys.stdout.close()
|
||||
sys.stderr.close()
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
Loading…
Reference in New Issue
Block a user