From 02a87dfe07af991aa85762476fddfec57bd6e108 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 11 Apr 2008 21:19:32 +0000 Subject: Fix 'undefined name' errors found by pyflakes. svn path=/main/trunk/; revision=9842 --- pym/portage/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pym') 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 -- cgit v1.2.3-1-g7c22