summaryrefslogtreecommitdiffstats
path: root/pym/portage/cache/anydbm.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage/cache/anydbm.py')
-rw-r--r--pym/portage/cache/anydbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/cache/anydbm.py b/pym/portage/cache/anydbm.py
index 226c6d7d0..5b771adad 100644
--- a/pym/portage/cache/anydbm.py
+++ b/pym/portage/cache/anydbm.py
@@ -38,7 +38,7 @@ class database(fs_template.FsBased):
try:
self._ensure_dirs()
self._ensure_dirs(self._db_path)
- except (OSError, IOError), e:
+ except (OSError, IOError) as e:
raise cache_errors.InitializationError(self.__class__, e)
# try again if failed
@@ -46,7 +46,7 @@ class database(fs_template.FsBased):
if self.__db == None:
self.__db = anydbm_module.open(
_unicode_encode(self._db_path), 'c', self._perms)
- except anydbm_module.error, e:
+ except anydbm_module.error as e:
raise cache_errors.InitializationError(self.__class__, e)
self._ensure_access(self._db_path)