depgraph.py: remove unused variables
authorZac Medico <zmedico@gentoo.org>
Fri, 23 Dec 2011 10:15:46 +0000 (02:15 -0800)
committerZac Medico <zmedico@gentoo.org>
Fri, 23 Dec 2011 10:15:46 +0000 (02:15 -0800)
pym/_emerge/depgraph.py

index 2c44ce1d3ab5cae16dfaed260d52fb60f7186158..81b1743791d6e21c0f24d96c14e08e0700814221 100644 (file)
@@ -927,7 +927,6 @@ class depgraph(object):
                debug = "--debug" in self._frozen_config.myopts
                buildpkgonly = "--buildpkgonly" in self._frozen_config.myopts
                nodeps = "--nodeps" in self._frozen_config.myopts
-               deep = self._dynamic_config.myparams.get("deep", 0)
                if dep.blocker:
                        if not buildpkgonly and \
                                not nodeps and \
@@ -1287,7 +1286,7 @@ class depgraph(object):
                                        settings.unlock()
                                        settings.setinst(pkg.cpv, pkg.metadata)
                                        settings.lock()
-                               except portage.exception.InvalidDependString as e:
+                               except portage.exception.InvalidDependString:
                                        if not pkg.installed:
                                                # should have been masked before it was selected
                                                raise
@@ -1360,7 +1359,6 @@ class depgraph(object):
 
        def _add_pkg_deps(self, pkg, allow_unsatisfied=False):
 
-               mytype = pkg.type_name
                myroot = pkg.root
                metadata = pkg.metadata
                removal_action = "remove" in self._dynamic_config.myparams