Ajust imports order according to hacking rule

Group imports and add missing blank lines.
http://docs.openstack.org/developer/hacking/#imports

Change-Id: I3cebb16a2113568610c79706b171930c7f990235
This commit is contained in:
Eric Guo
2014-01-11 10:06:11 +08:00
parent 1500be8652
commit 70ef2252bc
14 changed files with 17 additions and 9 deletions

View File

@@ -12,12 +12,14 @@
# implied. # implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import urllib import urllib
import flask import flask
from stackalytics.openstack.common import log as logging from stackalytics.openstack.common import log as logging
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@@ -13,9 +13,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import json
import datetime import datetime
import json
import operator import operator
import time import time

View File

@@ -23,6 +23,7 @@ from stackalytics.openstack.common import log as logging
from stackalytics.processor import runtime_storage from stackalytics.processor import runtime_storage
from stackalytics.processor import utils from stackalytics.processor import utils
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@@ -15,12 +15,12 @@
import operator import operator
import os import os
import re
import time import time
import flask import flask
from flask.ext import gravatar as gravatar_ext from flask.ext import gravatar as gravatar_ext
from oslo.config import cfg from oslo.config import cfg
import re
from dashboard import decorators from dashboard import decorators
from dashboard import helpers from dashboard import helpers

View File

@@ -15,6 +15,7 @@
from oslo.config import cfg from oslo.config import cfg
OPTS = [ OPTS = [
cfg.StrOpt('default-data-uri', cfg.StrOpt('default-data-uri',
default='file:///usr/local/etc/default_data.json', default='file:///usr/local/etc/default_data.json',

View File

@@ -19,6 +19,7 @@ import urlparse
from stackalytics.openstack.common import log as logging from stackalytics.openstack.common import log as logging
from stackalytics.processor import utils from stackalytics.processor import utils
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@@ -13,12 +13,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from email import utils as email_utils
import gzip import gzip
import httplib import httplib
import StringIO
from email import utils as email_utils
import re import re
import StringIO
import urlparse import urlparse
from stackalytics.openstack.common import log as logging from stackalytics.openstack.common import log as logging

View File

@@ -16,6 +16,7 @@
from stackalytics.openstack.common import log as logging from stackalytics.openstack.common import log as logging
from stackalytics.processor import utils from stackalytics.processor import utils
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@@ -20,6 +20,7 @@ from stackalytics.openstack.common import log as logging
from stackalytics.processor import launchpad_utils from stackalytics.processor import launchpad_utils
from stackalytics.processor import utils from stackalytics.processor import utils
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@@ -20,6 +20,7 @@ import memcache
from stackalytics.openstack.common import log as logging from stackalytics.openstack.common import log as logging
from stackalytics.processor import utils from stackalytics.processor import utils
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)
BULK_READ_SIZE = 64 BULK_READ_SIZE = 64

View File

@@ -15,12 +15,13 @@
import cgi import cgi
import datetime import datetime
import iso8601
import json import json
import re import re
import time import time
import urllib import urllib
import iso8601
from stackalytics.openstack.common import log as logging from stackalytics.openstack.common import log as logging

View File

@@ -13,7 +13,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import os import os
import re import re
import shutil import shutil

View File

@@ -15,9 +15,10 @@
import contextlib import contextlib
import itertools import itertools
import uuid
import mock import mock
import testtools import testtools
import uuid
from dashboard import web from dashboard import web
from stackalytics.processor import runtime_storage from stackalytics.processor import runtime_storage

View File

@@ -14,6 +14,7 @@
# limitations under the License. # limitations under the License.
import copy import copy
import mock import mock
import testtools import testtools