From 6f4ce3e8fa339a435e80798d9ce1cac4a2a0c83f Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Sun, 22 Jul 2007 09:55:50 +0000 Subject: Run pychecker over everything, fix obvious thing slike modules not in use, variables not being used, or global exceptions not being deleted. Also fix imports for style (1 per line) svn path=/main/trunk/; revision=7354 --- pym/portage/news.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pym/portage/news.py') diff --git a/pym/portage/news.py b/pym/portage/news.py index d8df8c294..702a377a5 100644 --- a/pym/portage/news.py +++ b/pym/portage/news.py @@ -72,7 +72,6 @@ class NewsManager(object): path = os.path.join(self.portdb.getRepositoryPath(repoid), self.NEWS_PATH) - repo_path = self.portdb.getRepositoryPath(repoid) # Skip reading news for repoid if the news dir does not exist. Requested by # NightMorph :) if not os.path.exists(path): @@ -83,7 +82,7 @@ class NewsManager(object): try: filename = os.path.join(path, itemid, itemid + "." + self.LANGUAGE_ID + ".txt") item = NewsItem(filename, itemid, timestamp) - except (TypeError, ValueError), e: + except (TypeError, ValueError): continue if item.isRelevant(profile=self._profile_path, config=self.config, vardb=self.vdb): -- cgit v1.2.3-1-g7c22