summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/ebuild_xattr.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 10:57:44 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2009-09-20 10:57:44 +0000
commit7cb8fb941f09d1ac646be334745f90e16ebd46eb (patch)
treebad100ba3461c881ebd388d29a6ac859a8962a1a /pym/portage/cache/ebuild_xattr.py
parente70e41916899163fb28a1f5fa24c0ee2b17707f7 (diff)
downloadportage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.gz
portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.tar.bz2
portage-7cb8fb941f09d1ac646be334745f90e16ebd46eb.zip
Update syntax of 'except' statements for compatibility with Python 3.
(2to3-3.1 -f except -nw ${FILES}) svn path=/main/trunk/; revision=14289
Diffstat (limited to 'pym/portage/cache/ebuild_xattr.py')
-rw-r--r--pym/portage/cache/ebuild_xattr.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/pym/portage/cache/ebuild_xattr.py b/pym/portage/cache/ebuild_xattr.py
index fa3937e2f..4bcc6c846 100644
--- a/pym/portage/cache/ebuild_xattr.py
+++ b/pym/portage/cache/ebuild_xattr.py
@@ -35,7 +35,7 @@ class database(fs_template.FsBased):
path = os.path.join(self.portdir,'profiles/repo_name')
try:
return int(self.__get(path,'value_max_len'))
- except NoValueException,e:
+ except NoValueException as e:
max = self.__calc_max(path)
self.__set(path,'value_max_len',str(max))
return max
@@ -54,7 +54,7 @@ class database(fs_template.FsBased):
while True:
self.__set(path,'test_max',s)
s+=hundred
- except IOError,e:
+ except IOError as e:
# ext based give wrong errno
# http://bugzilla.kernel.org/show_bug.cgi?id=12793
if e.errno in (E2BIG,ENOSPC):
@@ -64,7 +64,7 @@ class database(fs_template.FsBased):
try:
self.__remove(path,'test_max')
- except IOError,e:
+ except IOError as e:
if e.errno is not ENODATA:
raise e
@@ -77,7 +77,7 @@ class database(fs_template.FsBased):
def __has_cache(self,path):
try:
self.__get(path,'_mtime_')
- except NoValueException,e:
+ except NoValueException as e:
return False
return True
@@ -85,7 +85,7 @@ class database(fs_template.FsBased):
def __get(self,path,key,default=None):
try:
return xattr.get(path,key,namespace=self.ns)
- except IOError,e:
+ except IOError as e:
if not default is None and ENODATA == e.errno:
return default
else: