block_device: reorder imports
Reorder imports to hacking standard (stdlib, third-party, project) [1] [1] https://docs.openstack.org/developer/hacking/#import-order-template Change-Id: I4aa73321e1e796ef6b8b079e42f90bf5c75388fe
This commit is contained in:
parent
0d8c4270c0
commit
2a185ec6b6
7 changed files with 24 additions and 13 deletions
|
@ -13,9 +13,10 @@
|
|||
# under the License.
|
||||
|
||||
import argparse
|
||||
import logging
|
||||
|
||||
from diskimage_builder.block_device.blockdevice import BlockDevice
|
||||
from diskimage_builder import logging_config
|
||||
import logging
|
||||
|
||||
|
||||
def val_else_none(s):
|
||||
|
|
|
@ -13,17 +13,19 @@
|
|||
# under the License.
|
||||
|
||||
import codecs
|
||||
from diskimage_builder.block_device.blockdevicesetupexception \
|
||||
import BlockDeviceSetupException
|
||||
from diskimage_builder.graph.digraph import Digraph
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
from stevedore import extension
|
||||
import sys
|
||||
import yaml
|
||||
|
||||
from stevedore import extension
|
||||
|
||||
from diskimage_builder.block_device.blockdevicesetupexception \
|
||||
import BlockDeviceSetupException
|
||||
from diskimage_builder.graph.digraph import Digraph
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -12,15 +12,16 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from diskimage_builder.block_device.blockdevicesetupexception \
|
||||
import BlockDeviceSetupException
|
||||
from diskimage_builder.block_device.plugin_base import NodePluginBase
|
||||
from diskimage_builder.block_device.tree_config import TreeConfig
|
||||
from diskimage_builder.block_device.utils import parse_abs_size_spec
|
||||
from diskimage_builder.graph.digraph import Digraph
|
||||
import logging
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
|
|
@ -13,6 +13,8 @@
|
|||
# under the License.
|
||||
import logging
|
||||
import random
|
||||
|
||||
|
||||
from struct import pack
|
||||
|
||||
|
||||
|
|
|
@ -12,6 +12,11 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
||||
from subprocess import CalledProcessError
|
||||
|
||||
from diskimage_builder.block_device.blockdevicesetupexception \
|
||||
import BlockDeviceSetupException
|
||||
from diskimage_builder.block_device.level1.mbr import MBR
|
||||
|
@ -21,9 +26,7 @@ from diskimage_builder.block_device.utils import exec_sudo
|
|||
from diskimage_builder.block_device.utils import parse_abs_size_spec
|
||||
from diskimage_builder.block_device.utils import parse_rel_size_spec
|
||||
from diskimage_builder.graph.digraph import Digraph
|
||||
import logging
|
||||
import os
|
||||
from subprocess import CalledProcessError
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -13,9 +13,10 @@
|
|||
# under the License.
|
||||
|
||||
import abc
|
||||
from diskimage_builder.graph.digraph import Digraph
|
||||
import six
|
||||
|
||||
from diskimage_builder.graph.digraph import Digraph
|
||||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class PluginBase(object):
|
||||
|
|
|
@ -12,9 +12,10 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from diskimage_builder.block_device.utils import parse_abs_size_spec
|
||||
import testtools
|
||||
|
||||
from diskimage_builder.block_device.utils import parse_abs_size_spec
|
||||
|
||||
|
||||
class TestLoggingConfig(testtools.TestCase):
|
||||
|
||||
|
|
Loading…
Reference in a new issue