From c6705ef189ea960e847a46c5f44a542d56473556 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Jan 2018 10:42:09 +0530 Subject: [PATCH] Unused imports --- src/calibre/ptempfile.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/calibre/ptempfile.py b/src/calibre/ptempfile.py index a81d5f92ca..9166a3cfba 100644 --- a/src/calibre/ptempfile.py +++ b/src/calibre/ptempfile.py @@ -5,11 +5,11 @@ __copyright__ = '2008, Kovid Goyal ' Provides platform independent temporary files that persist even after being closed. """ -import tempfile, os, atexit, errno +import tempfile, os, atexit from future_builtins import map from calibre.constants import (__version__, __appname__, filesystem_encoding, - get_unicode_windows_env_var, iswindows, get_windows_temp_path, isosx, cache_dir) + get_unicode_windows_env_var, iswindows, get_windows_temp_path, isosx) def cleanup(path): @@ -292,6 +292,3 @@ def better_mktemp(*args, **kwargs): fd, path = tempfile.mkstemp(*args, **kwargs) os.close(fd) return path - - -