mirror of https://gitee.com/openkylin/libvirt.git
scripts: Fix the flake8 syntax-check failures
Fix the syntax-check failures (which can be seen after python3-flake8-import-order package is installed) with the help of isort[1]: 289/316 libvirt:syntax-check / flake8 FAIL 5.24s exit status 2 [1]: https://pycqa.github.io/isort/ Signed-off-by: Han Han <hhan@redhat.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
d7fb8deb6a
commit
28141adfdc
|
@ -1,8 +1,7 @@
|
|||
import json
|
||||
import pathlib
|
||||
import urllib.request
|
||||
import urllib.parse
|
||||
|
||||
import urllib.request
|
||||
from typing import Dict, List
|
||||
|
||||
|
||||
|
|
2
run.in
2
run.in
|
@ -44,8 +44,8 @@ import os
|
|||
import os.path
|
||||
import random
|
||||
import signal
|
||||
import sys
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
|
||||
# Function to intelligently prepend a path to an environment variable.
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
# daniel@veillard.com
|
||||
#
|
||||
|
||||
import os
|
||||
import sys
|
||||
import glob
|
||||
import re
|
||||
import argparse
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
quiet = True
|
||||
warnings = 0
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
#
|
||||
# Check that external references between documentation HTML files are not broken.
|
||||
|
||||
import sys
|
||||
import os
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
ns = {'html': 'http://www.w3.org/1999/xhtml'}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
import re
|
||||
import sys
|
||||
|
||||
if len(sys.argv) != 2:
|
||||
print(f"usage: {sys.argv[0]} POTFILE", file=sys.stderr)
|
||||
|
|
|
@ -22,10 +22,9 @@
|
|||
# <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
|
||||
import sys
|
||||
|
||||
OCCURRENCE__REQUIRED_ITEM = "r"
|
||||
OCCURRENCE__REQUIRED_LIST = "rl"
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
# License along with this library. If not, see
|
||||
# <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
import re
|
||||
import sys
|
||||
|
||||
if len(sys.argv) != 3:
|
||||
print("syntax: %s TOP-SRCDIR TOP-BUILDDIR\n" % sys.argv[0], file=sys.stderr)
|
||||
|
|
|
@ -20,9 +20,9 @@
|
|||
# <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
import sys
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
|
||||
separator = "/*" + ("*" * 50) + "*\n"
|
||||
wmi_classes_by_name = {}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
import sys
|
||||
import shutil
|
||||
import sys
|
||||
|
||||
meson_build_root = sys.argv[1]
|
||||
file_name = sys.argv[2]
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import os
|
||||
|
||||
from datetime import datetime, timezone
|
||||
|
||||
timestamp = os.environ.get('SOURCE_DATE_EPOCH', None)
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
|
||||
import argparse
|
||||
import copy
|
||||
import lark
|
||||
import os
|
||||
import re
|
||||
import xml.etree.ElementTree
|
||||
|
||||
import lark
|
||||
|
||||
|
||||
def translate_vendor(name):
|
||||
T = {
|
||||
|
|
|
@ -10,7 +10,6 @@ import subprocess
|
|||
import sys
|
||||
import xml.etree.ElementTree
|
||||
|
||||
|
||||
_KEYS = {
|
||||
"cpuid": ["eax_in", "ecx_in"],
|
||||
"msr": ["index"],
|
||||
|
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
import os
|
||||
import os.path
|
||||
import sys
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
builddir = os.getenv("abs_top_builddir")
|
||||
if builddir is None:
|
||||
|
|
|
@ -2,16 +2,17 @@
|
|||
|
||||
import argparse
|
||||
import array
|
||||
import libvirt
|
||||
import libvirt_qemu
|
||||
import fcntl
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
import sys
|
||||
import traceback
|
||||
import json
|
||||
import fcntl
|
||||
|
||||
import libvirt
|
||||
|
||||
import libvirt_qemu
|
||||
|
||||
debug = False
|
||||
|
||||
|
|
|
@ -36,22 +36,23 @@
|
|||
|
||||
import abc
|
||||
import argparse
|
||||
from base64 import b64decode, b64encode
|
||||
from hashlib import sha256
|
||||
import hmac
|
||||
import logging
|
||||
import os
|
||||
import re
|
||||
import socket
|
||||
from struct import pack
|
||||
import sys
|
||||
import traceback
|
||||
from base64 import b64decode, b64encode
|
||||
from hashlib import sha256
|
||||
from struct import pack
|
||||
from uuid import UUID
|
||||
|
||||
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
|
||||
|
||||
import libvirt
|
||||
|
||||
from lxml import etree
|
||||
import libvirt
|
||||
|
||||
log = logging.getLogger()
|
||||
|
||||
|
|
Loading…
Reference in New Issue