From 13bcf3a98e9d7720fa5aeb5af195376d932ed68f Mon Sep 17 00:00:00 2001 From: Andrew Hong Date: Wed, 22 Nov 2023 22:45:12 -0500 Subject: [PATCH] Remove unused imports Signed-off-by: Andrew Hong --- asahi_firmware/kernel.py | 3 +-- asahi_firmware/multitouch.py | 2 +- asahi_firmware/update.py | 2 +- asahi_firmware/wifi.py | 2 +- src/osinstall.py | 2 +- src/reporting.py | 2 +- src/stub.py | 3 +-- src/system.py | 2 +- src/util.py | 2 +- 9 files changed, 9 insertions(+), 11 deletions(-) diff --git a/asahi_firmware/kernel.py b/asahi_firmware/kernel.py index c6ce6d1..f0ab0fc 100644 --- a/asahi_firmware/kernel.py +++ b/asahi_firmware/kernel.py @@ -1,7 +1,6 @@ # SPDX-License-Identifier: MIT -import struct, os, logging +import os, logging from .img4 import img4p_extract -from .core import FWFile from .asmedia import extract_asmedia log = logging.getLogger("asahi_firmware.kernel") diff --git a/asahi_firmware/multitouch.py b/asahi_firmware/multitouch.py index bf3d3dc..e338371 100644 --- a/asahi_firmware/multitouch.py +++ b/asahi_firmware/multitouch.py @@ -1,6 +1,6 @@ # SPDX-License-Identifier: MIT import xml.etree.ElementTree as ET -import plistlib, base64, struct, os, logging +import plistlib, struct, os, logging from .img4 import img4p_extract from .core import FWFile diff --git a/asahi_firmware/update.py b/asahi_firmware/update.py index 20b01e4..249e25e 100644 --- a/asahi_firmware/update.py +++ b/asahi_firmware/update.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MIT -import pathlib, tempfile, subprocess, os.path +import pathlib, tempfile, subprocess from .core import FWPackage from .wifi import WiFiFWCollection diff --git a/asahi_firmware/wifi.py b/asahi_firmware/wifi.py index 346965c..e8b9f9c 100644 --- a/asahi_firmware/wifi.py +++ b/asahi_firmware/wifi.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MIT -import sys, os, os.path, pprint, statistics, logging +import sys, os, os.path, logging from .core import FWFile log = logging.getLogger("asahi_firmware.wifi") diff --git a/src/osinstall.py b/src/osinstall.py index 2160a29..facd370 100644 --- a/src/osinstall.py +++ b/src/osinstall.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MIT -import os, shutil, sys, stat, subprocess, urlcache, zipfile, logging +import os, shutil, subprocess, urlcache, zipfile, logging import m1n1 from util import * diff --git a/src/reporting.py b/src/reporting.py index 00fcba8..46d2065 100644 --- a/src/reporting.py +++ b/src/reporting.py @@ -1,5 +1,5 @@ import json, os, logging, time -from urllib import request, parse +from urllib import request from util import * EXPLANATIONS = { diff --git a/src/stub.py b/src/stub.py index 29905d5..688953f 100644 --- a/src/stub.py +++ b/src/stub.py @@ -1,6 +1,5 @@ # SPDX-License-Identifier: MIT -import os, os.path, plistlib, shutil, sys, stat, subprocess, urlcache, zipfile, logging, json -import osenum +import os, os.path, plistlib, shutil, subprocess, urlcache, zipfile, logging, json from asahi_firmware.wifi import WiFiFWCollection from asahi_firmware.bluetooth import BluetoothFWCollection from asahi_firmware.multitouch import MultitouchFWCollection diff --git a/src/system.py b/src/system.py index c2011bb..df0f065 100644 --- a/src/system.py +++ b/src/system.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MIT -import base64, plistlib, struct, subprocess, logging, json +import base64, plistlib, struct, subprocess, logging from util import * diff --git a/src/util.py b/src/util.py index ae7156d..d32c471 100644 --- a/src/util.py +++ b/src/util.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MIT -import re, logging, sys, os, stat, shutil, struct, subprocess, zlib, time, hashlib, lzma +import re, logging, sys, os, stat, struct, subprocess, zlib, time, hashlib, lzma from ctypes import * if sys.platform == 'darwin':