From 5dbbc102ebbeb4f6a007ac7dfc119cd7c4d436b8 Mon Sep 17 00:00:00 2001 From: shizhihui Date: Thu, 28 Jul 2016 12:25:39 +0800 Subject: 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 --- heatclient/v1/resource_types.py | 6 ++---- heatclient/v1/resources.py | 2 +- heatclient/v1/shell.py | 6 ++---- heatclient/v1/stacks.py | 2 +- 4 files changed, 6 insertions(+), 10 deletions(-) (limited to 'heatclient/v1') 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 -- cgit v1.2.1