summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/portage_news.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage_news.py b/pym/portage_news.py
index a20241b31..d3e5ea4f7 100644
--- a/pym/portage_news.py
+++ b/pym/portage_news.py
@@ -83,7 +83,7 @@ class NewsManager(object):
if tmp.isRelevant( profile=os.readlink(PROFILE_PATH), config=config, vardb=self.vdb):
updates.append( tmp )
finally:
- if newsdir_lock != None:
+ if newsdir_lock:
unlockdir(newsdir_lock)
del path