From a51b8b657f90e69d4c6eaaaf4c24af6501331668 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 15 Jul 2015 10:26:41 +0200 Subject: Remove import of exceptions module The exceptions module is obsolete. All builtin exception classes are globals. --- base/common/python/pki/crypto.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'base/common/python') diff --git a/base/common/python/pki/crypto.py b/base/common/python/pki/crypto.py index 147e65447..6a99c13fe 100644 --- a/base/common/python/pki/crypto.py +++ b/base/common/python/pki/crypto.py @@ -22,7 +22,6 @@ Module containing crypto classes. """ import abc -import exceptions import nss.nss as nss import os import shutil @@ -106,7 +105,7 @@ class NSSCryptoProvider(CryptoProvider): """ Create an NSS database """ if os.path.exists(db_dir): if not over_write: - raise exceptions.IOError("Directory already exists.") + raise IOError("Directory already exists.") if os.path.isdir(db_dir): shutil.rmtree(db_dir) else: -- cgit