From f02b2dc71f86b0ae9bdcc83944c926a779f950de Mon Sep 17 00:00:00 2001 From: Jay Lau Date: Sat, 14 Dec 2013 10:54:16 -0500 Subject: [PATCH] Adjust import order according to PEP8 imports rule This patch just adjust import order to follow PEP8 imports rule. See http://www.python.org/dev/peps/pep-0008/#imports Imports should be grouped in the following order: 1) Standard library imports 2) Related third party imports 3) Local application/library specific imports Change-Id: Ifa3f219207b02d60e757e17c42dae1fef2f628fe --- cinder/api/openstack/wsgi.py | 10 +++++----- cinder/utils.py | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cinder/api/openstack/wsgi.py b/cinder/api/openstack/wsgi.py index 70d127e81..a4ea19d07 100644 --- a/cinder/api/openstack/wsgi.py +++ b/cinder/api/openstack/wsgi.py @@ -19,7 +19,12 @@ import inspect import math import time + +from lxml import etree +import six import webob +from xml.dom import minidom +from xml.parsers import expat from cinder import exception from cinder.openstack.common import gettextutils @@ -28,11 +33,6 @@ from cinder.openstack.common import log as logging from cinder import utils from cinder import wsgi -from lxml import etree -import six -from xml.dom import minidom -from xml.parsers import expat - XMLNS_V1 = 'http://docs.openstack.org/volume/api/v1' XMLNS_ATOM = 'http://www.w3.org/2005/Atom' diff --git a/cinder/utils.py b/cinder/utils.py index d0353a15b..14148f46a 100644 --- a/cinder/utils.py +++ b/cinder/utils.py @@ -34,17 +34,17 @@ import stat import sys import tempfile import time -from xml.dom import minidom -from xml.parsers import expat -from xml import sax -from xml.sax import expatreader -from xml.sax import saxutils from eventlet import event from eventlet import greenthread from eventlet import pools from oslo.config import cfg import paramiko +from xml.dom import minidom +from xml.parsers import expat +from xml import sax +from xml.sax import expatreader +from xml.sax import saxutils from cinder.brick.initiator import connector from cinder import exception -- 2.45.2