We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6e1c99c + d32389c commit e90c90cCopy full SHA for e90c90c
autosub/__init__.py
@@ -71,7 +71,10 @@ def __call__(self, region):
71
"-loglevel", "error", temp.name]
72
use_shell = True if os.name == "nt" else False
73
subprocess.check_output(command, stdin=open(os.devnull), shell=use_shell)
74
- return temp.read()
+ read_data = temp.read()
75
+ temp.close()
76
+ os.unlink(temp.name)
77
+ return read_data
78
79
except KeyboardInterrupt:
80
return None
0 commit comments