From d4471259b7e67b89e04e159edd010b82c26dc42b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 4 Jul 2008 10:15:37 +0000 Subject: [PATCH] Fix broken references to portage.exception. svn path=/main/trunk/; revision=10923 --- pym/portage/dbapi/vartree.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 091a04081..50aadc898 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -471,7 +471,6 @@ class vardbapi(dbapi): try: dir_list = os.listdir(cat_dir) except EnvironmentError, e: - from portage.exception import PermissionDenied if e.errno == PermissionDenied.errno: raise PermissionDenied(cat_dir) del e @@ -532,7 +531,7 @@ class vardbapi(dbapi): if catpkgsplit(subpath) is None: self.invalidentry(os.path.join(self.root, subpath)) continue - except portage.exception.InvalidData: + except InvalidData: self.invalidentry(os.path.join(self.root, subpath)) continue returnme.append(subpath) @@ -546,7 +545,7 @@ class vardbapi(dbapi): y = y[1:] try: mysplit = catpkgsplit(y) - except portage.exception.InvalidData: + except InvalidData: self.invalidentry(self.getpath(y)) continue if not mysplit: -- 2.26.2