Remove import objects and use import modules

Do not import objects, only modules. Following the
OpenStack Style Guidelines,[1] this patch will unify
the import.

[1] http://docs.openstack.org/developer/hacking/#imports

Change-Id: Ie25aaa5a259cdfb151cb57800995996e9797549d
This commit is contained in:
Hanxi Liu 2016-09-19 23:29:47 +08:00
parent 976d8b4931
commit ea87d93bfe
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
# License for the specific language governing permissions and limitations
# under the License.
from collections import defaultdict
from hashlib import md5
import hashlib
import itertools
import operator
import re
@ -38,7 +38,7 @@ from ceilometer import gnocchi_client
from ceilometer import keystone_client
NAME_ENCODED = __name__.encode('utf-8')
CACHE_NAMESPACE = uuid.UUID(bytes=md5(NAME_ENCODED).digest())
CACHE_NAMESPACE = uuid.UUID(bytes=hashlib.md5(NAME_ENCODED).digest())
LOG = log.getLogger(__name__)
dispatcher_opts = [