From 429973c836e58e790f2fc36ee24c99a2fc2937ad Mon Sep 17 00:00:00 2001 From: Philipp Hahn Date: Fri, 16 Nov 2018 13:55:56 +0100 Subject: [PATCH] libvirtaio: Cleanup imports Move imports to top Signed-off-by: Philipp Hahn --- libvirtaio.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libvirtaio.py b/libvirtaio.py index 1e8b0c7..7a50c9d 100644 --- a/libvirtaio.py +++ b/libvirtaio.py @@ -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 ' __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