diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-09-27 07:58:26 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-09-27 07:58:26 -0700 |
commit | da782a6de61a3c0d9cd079c14d920852d2a4db9b (patch) | |
tree | 9966a05826b55a2968e5465f0be0c8729ff08e74 | |
parent | 6c6d98201812db2d4826d1a9becd9dcaee791d6c (diff) | |
download | portage-da782a6de61a3c0d9cd079c14d920852d2a4db9b.tar.gz portage-da782a6de61a3c0d9cd079c14d920852d2a4db9b.tar.bz2 portage-da782a6de61a3c0d9cd079c14d920852d2a4db9b.zip |
porttree.py: remove unused variables
-rw-r--r-- | pym/portage/dbapi/porttree.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/pym/portage/dbapi/porttree.py b/pym/portage/dbapi/porttree.py index d710d6404..e679f000c 100644 --- a/pym/portage/dbapi/porttree.py +++ b/pym/portage/dbapi/porttree.py @@ -235,13 +235,12 @@ class portdbapi(dbapi): group.""" dirmode = 0o2070 - filemode = 0o60 modemask = 0o2 try: ensure_dirs(self.depcachedir, gid=portage_gid, mode=dirmode, mask=modemask) - except PortageException as e: + except PortageException: pass def close_caches(self): @@ -626,7 +625,7 @@ class portdbapi(dbapi): mystat = None try: mystat = os.stat(file_path) - except OSError as e: + except OSError: pass if mystat is None: existing_size = 0 @@ -1130,9 +1129,9 @@ class portagetree(object): myslot = "" try: myslot = self.dbapi.aux_get(mycatpkg, ["SLOT"])[0] - except SystemExit as e: + except SystemExit: raise - except Exception as e: + except Exception: pass return myslot @@ -1193,7 +1192,7 @@ def _parse_uri_map(cpv, metadata, use=None): while myuris: uri = myuris.pop() if myuris and myuris[-1] == "->": - operator = myuris.pop() + myuris.pop() distfile = myuris.pop() else: distfile = os.path.basename(uri) @@ -1208,6 +1207,5 @@ def _parse_uri_map(cpv, metadata, use=None): uri_map[distfile] = uri_set uri_set.add(uri) uri = None - operator = None return uri_map |