From 68df533704514a0c7539ee541786e29e15e7f1f9 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Apr 2008 21:20:14 +0000 Subject: [PATCH] Fix 'undefined name' errors found by pyflakes. (trunk r9842) svn path=/main/branches/2.1.2/; revision=9843 --- pym/portage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage.py b/pym/portage.py index 2a427dfd4..5f829ac0d 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -1294,7 +1294,7 @@ class config: 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)) @@ -9830,8 +9830,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 -- 2.26.2