Switched to local on disk tmpfile
This commit is contained in:
parent
03c691f41a
commit
b29d77a465
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class ReadSwash:
|
|||
|
||||
@classmethod
|
||||
def read_nohead(cls, path):
|
||||
with tempfile.SpooledTemporaryFile() as tmpfile:
|
||||
with tempfile.NamedTemporaryFile(dir=path.parent) as tmpfile:
|
||||
with open(path) as file:
|
||||
subprocess.run(("tr", "-d", "\n"), stdin=file, stdout=tmpfile)
|
||||
tmpfile.seek(0)
|
||||
|
|
Loading…
Reference in a new issue