remove unused imports, cleanup
This commit is contained in:
parent
8e1bd5d38b
commit
41cc1ff98e
5 changed files with 9 additions and 13 deletions
|
@ -9,7 +9,7 @@ import shutil
|
||||||
import signal
|
import signal
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
from contextlib import redirect_stdout, redirect_stderr
|
from contextlib import redirect_stderr, redirect_stdout
|
||||||
from distutils.version import LooseVersion
|
from distutils.version import LooseVersion
|
||||||
from io import StringIO
|
from io import StringIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
@ -18,7 +18,7 @@ from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
from children_ui import PrefWindow, SettingsWindow
|
from children_ui import PrefWindow, SettingsWindow
|
||||||
from dolreader import DolFile
|
from dolreader import DolFile
|
||||||
from fileutils import resource_path, get_program_folder
|
from fileutils import get_program_folder, resource_path
|
||||||
from kernel import CodeHandler, KernelLoader
|
from kernel import CodeHandler, KernelLoader
|
||||||
from main_ui import MainWindow
|
from main_ui import MainWindow
|
||||||
from tools import CommandLineParser, color_text
|
from tools import CommandLineParser, color_text
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtGui, QtWidgets
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
@ -17,7 +16,7 @@ class PrefWindow(QtWidgets.QDialog):
|
||||||
self.setFixedSize(300, 120)
|
self.setFixedSize(300, 120)
|
||||||
self.setModal(True)
|
self.setModal(True)
|
||||||
icon = QtGui.QIcon()
|
icon = QtGui.QIcon()
|
||||||
icon.addPixmap(QtGui.QPixmap(str(resource_path(os.path.join("bin", "icon.ico")))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
icon.addPixmap(QtGui.QPixmap(str(resource_path("bin/icon.ico"))), QtGui.QIcon.Normal, QtGui.QIcon.Off)
|
||||||
self.setWindowIcon(icon)
|
self.setWindowIcon(icon)
|
||||||
|
|
||||||
#Buttonbox
|
#Buttonbox
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
|
|
||||||
import tools
|
import tools
|
||||||
from fileutils import read_uint32, write_uint32, align_byte_size
|
from fileutils import align_byte_size, read_uint32, write_uint32
|
||||||
|
|
||||||
class UnmappedAddressError(Exception): pass
|
class UnmappedAddressError(Exception): pass
|
||||||
class SectionCountFullError(Exception): pass
|
class SectionCountFullError(Exception): pass
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import os
|
|
||||||
import struct
|
import struct
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from tools import align_byte_size, get_alignment
|
from tools import align_byte_size, get_alignment
|
||||||
|
|
|
@ -1,16 +1,15 @@
|
||||||
import os
|
import functools
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import functools
|
|
||||||
|
|
||||||
from io import BytesIO
|
from io import BytesIO
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import tools
|
import tools
|
||||||
from fileutils import read_uint16, read_uint32, write_bool, write_ubyte, write_uint16, write_uint32, write_sint32, get_alignment
|
|
||||||
from dolreader import DolFile, SectionCountFullError, UnmappedAddressError
|
from dolreader import DolFile, SectionCountFullError, UnmappedAddressError
|
||||||
|
from fileutils import (get_alignment, read_uint16, read_uint32, write_bool,
|
||||||
|
write_sint32, write_ubyte, write_uint16, write_uint32)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import chardet
|
import chardet
|
||||||
|
|
Reference in a new issue