summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-11 21:19:32 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-11 21:19:32 +0000
commit02a87dfe07af991aa85762476fddfec57bd6e108 (patch)
tree3c77be8ffab07a772029966b2d6a87771ee85975
parent58274867ff71e79c8716334ef13f92eb37886d6b (diff)
downloadportage-02a87dfe07af991aa85762476fddfec57bd6e108.tar.gz
portage-02a87dfe07af991aa85762476fddfec57bd6e108.tar.bz2
portage-02a87dfe07af991aa85762476fddfec57bd6e108.zip
Fix 'undefined name' errors found by pyflakes.
svn path=/main/trunk/; revision=9842
-rw-r--r--pym/portage/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 7ec4b95d9..916f2c893 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -1134,7 +1134,7 @@ class config(object):
parents = grabfile(parentsFile)
if not parents:
raise portage.exception.ParseError(
- "Empty parent file: '%s'" % parents_file)
+ "Empty parent file: '%s'" % parentsFile)
for parentPath in parents:
parentPath = normalize_path(os.path.join(
currentPath, parentPath))
@@ -6065,8 +6065,8 @@ class FetchlistDict(UserDict.DictMixin):
"""Returns the complete fetch list for a given package."""
return self.portdb.getfetchlist(pkg_key, mysettings=self.settings,
all=True, mytree=self.mytree)[1]
- def __contains__(self):
- return pkg_key in self.keys()
+ def __contains__(self, cpv):
+ return cpv in self.keys()
def has_key(self, pkg_key):
"""Returns true if the given package exists within pkgdir."""
return pkg_key in self