summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid James <davidjames@chromium.org>2011-09-26 17:48:09 -0700
committerZac Medico <zmedico@gentoo.org>2011-09-26 18:57:54 -0700
commit6c6d98201812db2d4826d1a9becd9dcaee791d6c (patch)
tree9f11f3b572094679bb86401d917807dd03fdc9b2
parente20dcd3e3c6f0bbe8c3d51bca35080d5a987c42f (diff)
downloadportage-6c6d98201812db2d4826d1a9becd9dcaee791d6c.tar.gz
portage-6c6d98201812db2d4826d1a9becd9dcaee791d6c.tar.bz2
portage-6c6d98201812db2d4826d1a9becd9dcaee791d6c.zip
Cleanup unused variables / imports reported by pyflakes.
Change-Id: I92890279dc69974da94cc9a8a5483ddd295512d4
-rw-r--r--pym/portage/package/ebuild/doebuild.py1
-rw-r--r--pym/portage/package/ebuild/getmaskingstatus.py4
2 files changed, 1 insertions, 4 deletions
diff --git a/pym/portage/package/ebuild/doebuild.py b/pym/portage/package/ebuild/doebuild.py
index 9939e9cc2..e89d77d17 100644
--- a/pym/portage/package/ebuild/doebuild.py
+++ b/pym/portage/package/ebuild/doebuild.py
@@ -605,7 +605,6 @@ def doebuild(myebuild, mydo, myroot, mysettings, debug=0, listonly=0,
if builddir_lock is not None:
builddir_lock.unlock()
- restrict = set(mysettings.get('PORTAGE_RESTRICT', '').split())
# get possible slot information from the deps file
if mydo == "depend":
writemsg("!!! DEBUG: dbkey: %s\n" % str(dbkey), 2)
diff --git a/pym/portage/package/ebuild/getmaskingstatus.py b/pym/portage/package/ebuild/getmaskingstatus.py
index 6eaa223f6..66d3db528 100644
--- a/pym/portage/package/ebuild/getmaskingstatus.py
+++ b/pym/portage/package/ebuild/getmaskingstatus.py
@@ -7,11 +7,9 @@ import sys
import portage
from portage import eapi_is_supported, _eapi_is_deprecated
-from portage.dep import match_from_list, _slot_separator, _repo_separator
from portage.localization import _
from portage.package.ebuild.config import config
-from portage.versions import catpkgsplit, cpv_getkey
-from _emerge.Package import Package
+from portage.versions import catpkgsplit
if sys.hexversion >= 0x3000000:
basestring = str