Gentoo Archives: gentoo-catalyst

From: Mike Frysinger <vapier@g.o>
To: gentoo-catalyst@l.g.o
Subject: [gentoo-catalyst] [PATCH 01/13] lint: fix duplicate fcntl import
Date: Tue, 06 Oct 2015 15:05:38
Message-Id: 1444143929-26705-1-git-send-email-vapier@gentoo.org
1 This module is already imported at the top, so no point in doing it again.
2 ---
3 catalyst/lock.py | 1 -
4 1 file changed, 1 deletion(-)
5
6 diff --git a/catalyst/lock.py b/catalyst/lock.py
7 index 25d2aa2..71918d6 100644
8 --- a/catalyst/lock.py
9 +++ b/catalyst/lock.py
10 @@ -176,7 +176,6 @@ class LockDir(object):
11 #writemsg("Lockfile obtained\n")
12
13 def fcntl_unlock(self):
14 - import fcntl
15 unlinkfile = 1
16 if not os.path.exists(self.lockfile):
17 print "lockfile does not exist '%s'" % self.lockfile
18 --
19 2.5.2

Replies