summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage_locks.py')
-rw-r--r--pym/portage_locks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage_locks.py b/pym/portage_locks.py
index fcf503ae..30946c43 100644
--- a/pym/portage_locks.py
+++ b/pym/portage_locks.py
@@ -154,7 +154,7 @@ def unlockfile(mytuple):
return False
try:
- if myfd == None:
+ if myfd is None:
myfd = os.open(lockfilename, os.O_WRONLY,0660)
unlinkfile = 1
locking_method(myfd,fcntl.LOCK_UN)