summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/otg/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-02-29 17:23:57 +0300
committerDevaev Maxim <[email protected]>2020-02-29 17:23:57 +0300
commit75d9b858d73bf3ed31597e554b27520e3e31f72e (patch)
treef52e60f468d7ad99d8e9abf2df590026a4502862 /kvmd/plugins/msd/otg/__init__.py
parent5ef5e00da9e5d15270cdc253eb67bef72174b78f (diff)
moved AioExclusiveRegion to aiotools
Diffstat (limited to 'kvmd/plugins/msd/otg/__init__.py')
-rw-r--r--kvmd/plugins/msd/otg/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/plugins/msd/otg/__init__.py b/kvmd/plugins/msd/otg/__init__.py
index 41e1653f..f3695530 100644
--- a/kvmd/plugins/msd/otg/__init__.py
+++ b/kvmd/plugins/msd/otg/__init__.py
@@ -45,7 +45,6 @@ from ....validators.os import valid_abs_dir
from ....validators.os import valid_command
from .... import aiotools
-from .... import aioregion
from .. import MsdError
from .. import MsdIsBusyError
@@ -111,7 +110,7 @@ class _State:
self.vd: Optional[_VirtualDriveState] = None
self._lock = asyncio.Lock()
- self._region = aioregion.AioExclusiveRegion(MsdIsBusyError)
+ self._region = aiotools.AioExclusiveRegion(MsdIsBusyError)
@contextlib.asynccontextmanager
async def busy(self, check_online: bool=True) -> AsyncGenerator[None, None]: