From b863fb3744170e5aa44083fd53fa92b3b9c3fb04 Mon Sep 17 00:00:00 2001 From: Vishvananda Ishaya Date: Thu, 2 Feb 2012 15:24:34 -0800 Subject: Make crypto use absolute imports * Fixes bug 925792 * Cleans up some extra imports as well Change-Id: Ibea2411f552747e074c8d2e96468e3b09bf9c9c9 --- nova/crypto.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/nova/crypto.py b/nova/crypto.py index a8b10de9b..ddc2f76a0 100644 --- a/nova/crypto.py +++ b/nova/crypto.py @@ -22,25 +22,24 @@ Includes root and intermediate CAs, SSH key_pairs and x509 certificates. """ +from __future__ import absolute_import + import base64 -import gettext import hashlib import os import shutil import string import tempfile -import utils import Crypto.Cipher.AES -gettext.install('nova', unicode=1) - from nova.common import cfg from nova import context from nova import db from nova import exception from nova import flags from nova import log as logging +from nova import utils LOG = logging.getLogger("nova.crypto") -- cgit