From 3bffc1a48ce2e89d67cf4204995c76b97608c1b4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 30 Sep 2010 16:50:41 -0600 Subject: [PATCH] ... --- src/calibre/startup.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/calibre/startup.py b/src/calibre/startup.py index 9f745f60ff..143a3edb47 100644 --- a/src/calibre/startup.py +++ b/src/calibre/startup.py @@ -21,12 +21,6 @@ from calibre.constants import iswindows, preferred_encoding, plugins _run_once = False winutil = winutilerror = None -try: - import fcntl -except: - fcntl - fcntl = None - if not _run_once: _run_once = True @@ -146,6 +140,7 @@ if not _run_once: fd = os.open(name, flags) ans = os.fdopen(fd, mode, bufsize) else: + import fcntl try: cloexec_flag = fcntl.FD_CLOEXEC except AttributeError: