More aggressive autoflake

This commit is contained in:
Dpeta 2023-01-14 23:10:19 +01:00
parent 30569d4a95
commit 3ae70e4fe0
No known key found for this signature in database
GPG key ID: 51227517CEA0030C
10 changed files with 4 additions and 12 deletions

View file

@ -11,7 +11,6 @@ except ImportError:
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QAction, QShortcut from PyQt5.QtWidgets import QAction, QShortcut
import ostools
from dataobjs import PesterHistory from dataobjs import PesterHistory
from parsetools import convertTags, lexMessage, mecmd, colorBegin, colorEnd, smiledict from parsetools import convertTags, lexMessage, mecmd, colorBegin, colorEnd, smiledict
import parsetools import parsetools

View file

@ -1,5 +1,4 @@
import logging import logging
import ostools
PchumLog = logging.getLogger("pchumLogger") PchumLog = logging.getLogger("pchumLogger")
try: try:

1
irc.py
View file

@ -10,7 +10,6 @@ except ImportError:
print("PyQt5 fallback (irc.py)") print("PyQt5 fallback (irc.py)")
from PyQt5 import QtCore, QtGui from PyQt5 import QtCore, QtGui
import ostools
from mood import Mood from mood import Mood
from dataobjs import PesterProfile from dataobjs import PesterProfile
from generic import PesterList from generic import PesterList

View file

@ -11,7 +11,6 @@ except ImportError:
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QAction from PyQt5.QtWidgets import QAction
import ostools
import parsetools import parsetools
from dataobjs import PesterProfile, PesterHistory from dataobjs import PesterProfile, PesterHistory
from generic import PesterIcon, RightClickList, mysteryTime from generic import PesterIcon, RightClickList, mysteryTime

View file

@ -1,8 +1,8 @@
try: try:
from PyQt6 import QtCore, QtGui, QtWidgets from PyQt6 import QtCore, QtWidgets
except ImportError: except ImportError:
print("PyQt5 fallback (mood.py)") print("PyQt5 fallback (mood.py)")
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5 import QtCore, QtWidgets
from generic import PesterIcon from generic import PesterIcon

View file

@ -11,7 +11,6 @@ except ImportError:
from PyQt5 import QtGui, QtWidgets from PyQt5 import QtGui, QtWidgets
import dataobjs import dataobjs
import ostools
# karxi: My own contribution to this - a proper lexer. # karxi: My own contribution to this - a proper lexer.
import pnc.lexercon as lexercon import pnc.lexercon as lexercon

View file

@ -60,11 +60,11 @@ from toast import PesterToastMachine, PesterToast
try: try:
from PyQt6 import QtCore, QtGui, QtWidgets from PyQt6 import QtCore, QtGui, QtWidgets
from PyQt6.QtGui import QShortcut, QAction, QActionGroup from PyQt6.QtGui import QAction, QActionGroup
except ImportError: except ImportError:
print("PyQt5 fallback (pesterchum.py)") print("PyQt5 fallback (pesterchum.py)")
from PyQt5 import QtCore, QtGui, QtWidgets from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QAction, QShortcut, QActionGroup from PyQt5.QtWidgets import QAction, QActionGroup
# Data directory # Data directory
ostools.validateDataDir() ostools.validateDataDir()

View file

@ -7,7 +7,6 @@ except ImportError:
print("PyQt5 fallback (pyquirks.py)") print("PyQt5 fallback (pyquirks.py)")
from PyQt5 import QtWidgets from PyQt5 import QtWidgets
import ostools
from quirks import ScriptQuirks from quirks import ScriptQuirks
PchumLog = logging.getLogger("pchumLogger") PchumLog = logging.getLogger("pchumLogger")

View file

@ -6,7 +6,6 @@ except ImportError:
print("PyQt5 fallback (randomer.py)") print("PyQt5 fallback (randomer.py)")
from PyQt5 import QtCore, QtWidgets from PyQt5 import QtCore, QtWidgets
import ostools
PchumLog = logging.getLogger("pchumLogger") PchumLog = logging.getLogger("pchumLogger")

View file

@ -2,7 +2,6 @@
import sys import sys
from cx_Freeze import setup, Executable from cx_Freeze import setup, Executable
import pygame
from version import buildVersion from version import buildVersion