style: sort imports in compute, db and services modules

This commit is contained in:
Mark Paronyan committed 2026-10-02 12:43:26 +03:00
1 parent 38e9ddca09
commit b9cdac487c
42 files changed
+247 -256

No files matched your search

+3 -3
View File
@@ -18,11 +18,11 @@
Builtin nodes server module.
"""
from ..base_manager import BaseManager
from .builtin_node_factory import BuiltinNodeFactory, BUILTIN_NODES
import logging
from ..base_manager import BaseManager
from .builtin_node_factory import BUILTIN_NODES, BuiltinNodeFactory
log = logging.getLogger(__name__)
@@ -15,13 +15,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import logging
from ..error import NodeError
from .nodes.cloud import Cloud
from .nodes.nat import Nat
from .nodes.ethernet_hub import EthernetHub
from .nodes.ethernet_switch import EthernetSwitch
import logging
from .nodes.nat import Nat
log = logging.getLogger(__name__)
+7 -8
View File
@@ -14,18 +14,17 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys
import logging
import subprocess
import sys
from ...error import NodeError
from ...base_node import BaseNode
from ...nios.nio_udp import NIOUDP
import gns3server.utils.asyncio
import gns3server.utils.interfaces
from gns3server.compute.ubridge.ubridge_error import UbridgeError
import gns3server.utils.interfaces
import gns3server.utils.asyncio
import logging
from ...base_node import BaseNode
from ...error import NodeError
from ...nios.nio_udp import NIOUDP
log = logging.getLogger(__name__)
@@ -15,11 +15,10 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import asyncio
import logging
from ...base_node import BaseNode
import logging
log = logging.getLogger(__name__)
@@ -37,12 +37,13 @@ be the switch). ESW ``access``/``dot1q``/``qinq`` port modes are composed from
the ``brctl`` VLAN primitives here -- see ``_apply_port_vlan``.
"""
from ...base_node import BaseNode
from ...nios.nio_udp import NIOUDP
from ...error import NodeError
import logging
from gns3server.compute.ubridge.ubridge_error import UbridgeError
import logging
from ...base_node import BaseNode
from ...error import NodeError
from ...nios.nio_udp import NIOUDP
log = logging.getLogger(__name__)
+3 -4
View File
@@ -15,15 +15,14 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import logging
import sys
from .cloud import Cloud
from ...error import NodeError
import gns3server.utils.interfaces
from gns3server.config import Config
import logging
from ...error import NodeError
from .cloud import Cloud
log = logging.getLogger(__name__)