mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-03 08:21:58 +03:00
libvirtaio: Cleanup imports
Move imports to top Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
@ -28,6 +28,13 @@ Register the implementation of default loop:
|
||||
https://libvirt.org/html/libvirt-libvirt-event.html
|
||||
'''
|
||||
|
||||
import asyncio
|
||||
import itertools
|
||||
import logging
|
||||
import warnings
|
||||
|
||||
import libvirt
|
||||
|
||||
__author__ = 'Wojtek Porczyk <woju@invisiblethingslab.com>'
|
||||
__license__ = 'LGPL-2.1+'
|
||||
__all__ = [
|
||||
@ -36,13 +43,6 @@ __all__ = [
|
||||
'virEventRegisterAsyncIOImpl',
|
||||
]
|
||||
|
||||
import asyncio
|
||||
import itertools
|
||||
import logging
|
||||
import warnings
|
||||
|
||||
import libvirt
|
||||
|
||||
# Python < 3.4.4 doesn't have 'ensure_future', so we have to fall
|
||||
# back to 'async'; however, since 'async' is a reserved keyword
|
||||
# in Python >= 3.7, we can't perform a straightforward import and
|
||||
|
Reference in New Issue
Block a user