Bugfix for creation of temporary files

This commit is contained in:
Koen van Zuijlen 2020-12-29 21:19:46 +01:00
parent 421c80a617
commit b992d26138

View file

@ -421,9 +421,7 @@ class _Network:
"""
if not file_path:
file = tempfile.TemporaryFile(prefix="pylast_tmp_")
file.close()
file_path = file.name
file_path = tempfile.mkstemp(prefix="pylast_tmp_")
self.cache_backend = _ShelfCacheBackend(file_path)