summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2006-04-07 00:48:59 +0000
committerAlec Warner <antarus@gentoo.org>2006-04-07 00:48:59 +0000
commita7972f2f756788f50e71bb2a9e985f77fd140c5b (patch)
tree46a547e32c85f7391ebe96739dc0b81a40590334 /pym/portage_locks.py
parentonly display syncing progress for each file when --verbose is set; thanks Ola... (diff)
downloadportage-multirepo-a7972f2f756788f50e71bb2a9e985f77fd140c5b.tar.gz
portage-multirepo-a7972f2f756788f50e71bb2a9e985f77fd140c5b.tar.bz2
portage-multirepo-a7972f2f756788f50e71bb2a9e985f77fd140c5b.zip
Change == None to is None
svn path=/main/trunk/; revision=3085
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)