summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
authorChristian Heimes <cheimes@redhat.com>2015-07-15 10:26:41 +0200
committerChristian Heimes <cheimes@redhat.com>2015-08-10 11:58:44 +0200
commita51b8b657f90e69d4c6eaaaf4c24af6501331668 (patch)
tree73e2f6017686cda9d1f1543778299d587923d0c6 /base/common
parent82863bb9250477953fad80387190f8e1e6399d48 (diff)
downloadpki-a51b8b657f90e69d4c6eaaaf4c24af6501331668.tar.gz
pki-a51b8b657f90e69d4c6eaaaf4c24af6501331668.tar.xz
pki-a51b8b657f90e69d4c6eaaaf4c24af6501331668.zip
Remove import of exceptions module
The exceptions module is obsolete. All builtin exception classes are globals.
Diffstat (limited to 'base/common')
-rw-r--r--base/common/python/pki/crypto.py3
1 files changed, 1 insertions, 2 deletions
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: