Merge "move imports to top of file for lints"

This commit is contained in:
Zuul 2025-01-08 23:38:19 +00:00 committed by Gerrit Code Review
commit b806b2c0c2

View File

@ -17,6 +17,10 @@ import functools
from automaton import exceptions as automaton_exceptions
from automaton import machines
from ironic.common import exception as excp
from ironic.common.i18n import _
"""State machine modelling.
This is being used in the implementation of:
@ -25,10 +29,6 @@ http://specs.openstack.org/openstack/ironic-specs/specs/kilo/new-ironic-state-ma
"""
from ironic.common import exception as excp
from ironic.common.i18n import _
def _translate_excp(func):
"""Decorator to translate automaton exceptions into ironic exceptions."""