Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports #237

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions asahi_firmware/kernel.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
2 changes: 1 addition & 1 deletion asahi_firmware/multitouch.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion asahi_firmware/update.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion asahi_firmware/wifi.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
2 changes: 1 addition & 1 deletion src/osinstall.py
Original file line number Diff line number Diff line change
@@ -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 *
Expand Down
2 changes: 1 addition & 1 deletion src/reporting.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import json, os, logging, time
from urllib import request, parse
from urllib import request
from util import *

EXPLANATIONS = {
Expand Down
3 changes: 1 addition & 2 deletions src/stub.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/system.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: MIT
import base64, plistlib, struct, subprocess, logging, json
import base64, plistlib, struct, subprocess, logging

from util import *

Expand Down
2 changes: 1 addition & 1 deletion src/util.py
Original file line number Diff line number Diff line change
@@ -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':
Expand Down