From b992d2613826ef2d2830842751622c058e55d45f Mon Sep 17 00:00:00 2001 From: Koen van Zuijlen Date: Tue, 29 Dec 2020 21:19:46 +0100 Subject: [PATCH] Bugfix for creation of temporary files --- src/pylast/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/pylast/__init__.py b/src/pylast/__init__.py index 1a24622..af426e2 100644 --- a/src/pylast/__init__.py +++ b/src/pylast/__init__.py @@ -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)