summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Snow2021-06-03 02:37:07 +0200
committerJohn Snow2021-06-18 22:10:06 +0200
commitc6b7eae9b6743f017067ece3830dd8563b2350a9 (patch)
treea5d7e8a8d868b828f70aad3c7c880ece9698cb5a
parentscripts/qmp: redirect qom-xxx scripts to python/qemu/qmp/ (diff)
downloadqemu-c6b7eae9b6743f017067ece3830dd8563b2350a9.tar.gz
qemu-c6b7eae9b6743f017067ece3830dd8563b2350a9.tar.xz
qemu-c6b7eae9b6743f017067ece3830dd8563b2350a9.zip
scripts/qom-fuse: apply isort rules
Hint: you can use symlinks to create qom_fuse.py in python/qemu/qmp/ and point to scripts/qom-fuse to apply the standard linting rules to this script. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-id: 20210603003719.1321369-8-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
-rwxr-xr-xscripts/qmp/qom-fuse12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/qmp/qom-fuse b/scripts/qmp/qom-fuse
index 7c7cff8edf..62deb9adb1 100755
--- a/scripts/qmp/qom-fuse
+++ b/scripts/qmp/qom-fuse
@@ -13,14 +13,20 @@
# the COPYING file in the top-level directory.
##
-import fuse, stat
-from fuse import FUSE, FuseOSError, Operations
-import os, posix, sys
from errno import *
+import os
+import posix
+import stat
+import sys
+
+import fuse
+from fuse import FUSE, FuseOSError, Operations
+
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '..', 'python'))
from qemu.qmp import QEMUMonitorProtocol
+
fuse.fuse_python_api = (0, 2)
class QOMFS(Operations):