summaryrefslogtreecommitdiff
path: root/heatclient/v1
diff options
context:
space:
mode:
authorshizhihui <zhihui.shi@easystack.cn>2016-07-28 12:25:39 +0800
committershizhihui <zhihui.shi@easystack.cn>2016-08-03 19:45:05 +0800
commit5dbbc102ebbeb4f6a007ac7dfc119cd7c4d436b8 (patch)
tree759a461f2d494271763e704ab1cdfcb6ab1cbb9a /heatclient/v1
parentd930e33cf4bcc9a870117eb00a19b3f5b4448b24 (diff)
downloadpython-heatclient-5dbbc102ebbeb4f6a007ac7dfc119cd7c4d436b8.tar.gz
Standardize import format
According to the rule in http://docs.openstack.org/developer/hacking/#imports I modify some irregular import format in heatclinet. Change-Id: I0200ddad88ee833d7de9d6df2c1519e4f4560db7
Diffstat (limited to 'heatclient/v1')
-rw-r--r--heatclient/v1/resource_types.py6
-rw-r--r--heatclient/v1/resources.py2
-rw-r--r--heatclient/v1/shell.py6
-rw-r--r--heatclient/v1/stacks.py2
4 files changed, 6 insertions, 10 deletions
diff --git a/heatclient/v1/resource_types.py b/heatclient/v1/resource_types.py
index b4039d1..ef29cdc 100644
--- a/heatclient/v1/resource_types.py
+++ b/heatclient/v1/resource_types.py
@@ -11,13 +11,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-import six
-
-from heatclient.common import utils
-
from oslo_utils import encodeutils
+import six
from six.moves.urllib import parse
+from heatclient.common import utils
from heatclient.openstack.common.apiclient import base
diff --git a/heatclient/v1/resources.py b/heatclient/v1/resources.py
index b55017d..0d80596 100644
--- a/heatclient/v1/resources.py
+++ b/heatclient/v1/resources.py
@@ -12,12 +12,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from heatclient.common import utils
from oslo_utils import encodeutils
import six
from six.moves.urllib import parse
+from heatclient.common import utils
from heatclient.openstack.common.apiclient import base
from heatclient.v1 import stacks
diff --git a/heatclient/v1/shell.py b/heatclient/v1/shell.py
index cfc942a..76d40a4 100644
--- a/heatclient/v1/shell.py
+++ b/heatclient/v1/shell.py
@@ -14,12 +14,12 @@
# under the License.
import logging
+import sys
from oslo_serialization import jsonutils
from oslo_utils import strutils
import six
from six.moves.urllib import request
-import sys
import yaml
from heatclient.common import deployment_utils
@@ -29,13 +29,11 @@ from heatclient.common import http
from heatclient.common import template_format
from heatclient.common import template_utils
from heatclient.common import utils
-
+import heatclient.exc as exc
from heatclient.openstack.common._i18n import _
from heatclient.openstack.common._i18n import _LI
from heatclient.openstack.common._i18n import _LW
-import heatclient.exc as exc
-
logger = logging.getLogger(__name__)
diff --git a/heatclient/v1/stacks.py b/heatclient/v1/stacks.py
index 40ac180..864772f 100644
--- a/heatclient/v1/stacks.py
+++ b/heatclient/v1/stacks.py
@@ -12,11 +12,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from heatclient.common import utils
import six
from six.moves.urllib import parse
+from heatclient.common import utils
from heatclient import exc
from heatclient.openstack.common._i18n import _
from heatclient.openstack.common.apiclient import base