Move six to the right location
Third party imports are supposed to be after standard library imports so make six be after. Some newlines are also added to separate standard library imports from all the others. Co-authored-by: Ivan A. Melnikov <imelnikov@griddynamics.com> Change-Id: Ied067e9367612758666da726df195ed390215e1b
This commit is contained in:
committed by
Ivan A. Melnikov
parent
d617864898
commit
cb0ebb9e6c
@@ -18,9 +18,9 @@
|
|||||||
|
|
||||||
import abc
|
import abc
|
||||||
import contextlib
|
import contextlib
|
||||||
import six
|
|
||||||
|
|
||||||
from concurrent import futures
|
from concurrent import futures
|
||||||
|
import six
|
||||||
|
|
||||||
from taskflow.utils import async_utils
|
from taskflow.utils import async_utils
|
||||||
from taskflow.utils import misc
|
from taskflow.utils import misc
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import abc
|
import abc
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from taskflow.utils import reflection
|
from taskflow.utils import reflection
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from stevedore import driver
|
from stevedore import driver
|
||||||
|
|
||||||
from taskflow import exceptions as exc
|
from taskflow import exceptions as exc
|
||||||
|
|||||||
@@ -21,10 +21,11 @@ import errno
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import six
|
|
||||||
import threading
|
import threading
|
||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
from taskflow import exceptions as exc
|
from taskflow import exceptions as exc
|
||||||
from taskflow.openstack.common import jsonutils
|
from taskflow.openstack.common import jsonutils
|
||||||
from taskflow.openstack.common import timeutils
|
from taskflow.openstack.common import timeutils
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from taskflow.openstack.common import uuidutils
|
from taskflow.openstack.common import uuidutils
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
|
||||||
from taskflow import exceptions
|
from taskflow import exceptions
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import taskflow.test
|
import taskflow.test
|
||||||
|
|
||||||
ROOT_DIR = os.path.abspath(
|
ROOT_DIR = os.path.abspath(
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
|
|
||||||
import collections
|
import collections
|
||||||
import functools
|
import functools
|
||||||
|
|
||||||
import testtools
|
import testtools
|
||||||
|
|
||||||
from taskflow import test
|
from taskflow import test
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
|
|
||||||
import mock
|
import mock
|
||||||
|
|
||||||
from taskflow import exceptions
|
from taskflow import exceptions
|
||||||
|
|||||||
@@ -16,19 +16,18 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import testtools
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from taskflow.patterns import linear_flow as lf
|
import testtools
|
||||||
from taskflow.utils import eventlet_utils as eu
|
|
||||||
|
|
||||||
import taskflow.engines
|
import taskflow.engines
|
||||||
|
|
||||||
from taskflow import exceptions as exc
|
from taskflow import exceptions as exc
|
||||||
|
from taskflow.patterns import linear_flow as lf
|
||||||
from taskflow import states
|
from taskflow import states
|
||||||
from taskflow import task
|
from taskflow import task
|
||||||
from taskflow import test
|
from taskflow import test
|
||||||
from taskflow.tests import utils
|
from taskflow.tests import utils
|
||||||
|
from taskflow.utils import eventlet_utils as eu
|
||||||
|
|
||||||
|
|
||||||
class TestTask(task.Task):
|
class TestTask(task.Task):
|
||||||
|
|||||||
@@ -17,9 +17,10 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import six
|
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
from taskflow.persistence.backends import impl_memory
|
from taskflow.persistence.backends import impl_memory
|
||||||
from taskflow import task
|
from taskflow import task
|
||||||
|
|
||||||
|
|||||||
@@ -16,10 +16,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import six
|
|
||||||
|
|
||||||
import networkx as nx
|
import networkx as nx
|
||||||
from networkx import algorithms
|
import six
|
||||||
|
|
||||||
|
|
||||||
def get_edge_attrs(graph, u, v):
|
def get_edge_attrs(graph, u, v):
|
||||||
@@ -47,7 +45,7 @@ def merge_graphs(graphs, allow_overlaps=False):
|
|||||||
len(overlaps)))
|
len(overlaps)))
|
||||||
# Keep the target graphs name.
|
# Keep the target graphs name.
|
||||||
name = graph.name
|
name = graph.name
|
||||||
graph = algorithms.compose(graph, g)
|
graph = nx.algorithms.compose(graph, g)
|
||||||
graph.name = name
|
graph.name = name
|
||||||
return graph
|
return graph
|
||||||
|
|
||||||
|
|||||||
@@ -24,12 +24,13 @@ import functools
|
|||||||
import keyword
|
import keyword
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import six
|
|
||||||
import string
|
import string
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
from taskflow import exceptions
|
from taskflow import exceptions
|
||||||
from taskflow.utils import reflection
|
from taskflow.utils import reflection
|
||||||
|
|
||||||
|
|||||||
@@ -17,9 +17,10 @@
|
|||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import inspect
|
import inspect
|
||||||
import six
|
|
||||||
import types
|
import types
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
|
|
||||||
def get_member_names(obj, exclude_hidden=True):
|
def get_member_names(obj, exclude_hidden=True):
|
||||||
"""Get all the member names for a object."""
|
"""Get all the member names for a object."""
|
||||||
|
|||||||
@@ -18,10 +18,11 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import multiprocessing
|
import multiprocessing
|
||||||
import six
|
|
||||||
import threading
|
import threading
|
||||||
import types
|
import types
|
||||||
|
|
||||||
|
import six
|
||||||
|
|
||||||
from taskflow.utils import lock_utils
|
from taskflow.utils import lock_utils
|
||||||
|
|
||||||
LOG = logging.getLogger(__name__)
|
LOG = logging.getLogger(__name__)
|
||||||
|
|||||||
Reference in New Issue
Block a user