diff --git a/dataobjs.py b/dataobjs.py
index 2a36655..b2e0d5e 100644
--- a/dataobjs.py
+++ b/dataobjs.py
@@ -464,9 +464,11 @@ class PesterProfile:
PchumLog.exception("")
initials = self.initials()
if opchum.handle == reason:
- return (
- "%s banned %s from responding to memo."
- % (opchum.colorhtml(), opinit, self.colorhtml(), initials)
+ return "%s banned %s from responding to memo." % (
+ opchum.colorhtml(),
+ opinit,
+ self.colorhtml(),
+ initials,
)
else:
return (
diff --git a/pesterchum.py b/pesterchum.py
index a54e867..5a164c1 100755
--- a/pesterchum.py
+++ b/pesterchum.py
@@ -168,12 +168,14 @@ _ARGUMENTS = parser.parse_args()
try:
# PyQt6, QtMultimedia is prefered.
from PyQt6 import QtMultimedia
+
print("Audio module is PyQt6 QtMultimedia.")
except ImportError:
if ostools.isWin32() or ostools.isOSX():
# PyQt5 QtMultimedia has native backends for MacOS and Windows
try:
from PyQt5 import QtMultimedia
+
print(
"Using PyQt5 QtMultimedia as sound module. (fallback, PyQt6 QtMultimedia not availible)"
)
@@ -194,12 +196,14 @@ except ImportError:
# PyQt5 QtMultimedia needs gstreamer on linux, so pygame is prefered.
try:
import pygame
+
print(
"Using pygame as sound module. (fallback, PyQt6 QtMultimedia not availible)"
)
except ImportError:
try:
from PyQt5 import QtMultimedia
+
print(
"Using PyQt5 QtMultimedia as sound module. (fallback, PyQt6 QtMultimedia and pygame not availible)"
)
diff --git a/pnc/lexercon.py b/pnc/lexercon.py
index 033b9a5..6112af8 100644
--- a/pnc/lexercon.py
+++ b/pnc/lexercon.py
@@ -49,7 +49,7 @@ class Lexeme:
raise NotImplementedError
-#class Message(Lexeme):
+# class Message(Lexeme):
# """An object designed to represent a message, possibly containing Lexeme
# objects in their native form as well. Intended to be a combination of a
# list and a string, combining the former with the latter's methods."""
diff --git a/pytwmn.py b/pytwmn.py
index af754d2..641af53 100755
--- a/pytwmn.py
+++ b/pytwmn.py
@@ -30,6 +30,7 @@ def confExists():
except:
return False
+
def init(host="127.0.0.1", port=None):
if not port:
port = 9797
diff --git a/quirks.py b/quirks.py
index 077783f..b4fde57 100644
--- a/quirks.py
+++ b/quirks.py
@@ -52,7 +52,9 @@ class ScriptQuirks:
try:
extension = self.getExtension()
except AttributeError:
- PchumLog.exception("No self.getExtension(), does ScriptQuirks need to be subclassed?")
+ PchumLog.exception(
+ "No self.getExtension(), does ScriptQuirks need to be subclassed?"
+ )
return
filenames = []
if not os.path.exists(os.path.join(self.home, "quirks")):
@@ -72,7 +74,9 @@ class ScriptQuirks:
try:
extension_length = len(self.getExtension())
except AttributeError:
- PchumLog.exception("No self.getExtension(), does ScriptQuirks need to be subclassed?")
+ PchumLog.exception(
+ "No self.getExtension(), does ScriptQuirks need to be subclassed?"
+ )
return
name = os.path.basename(filename)[:-extension_length]
try:
diff --git a/toast.py b/toast.py
index 330fbb3..5c3356d 100644
--- a/toast.py
+++ b/toast.py
@@ -202,7 +202,7 @@ class ToastMachine:
try:
pytwmn.init()
- except Exception :
+ except Exception:
PchumLog.exception("Problem initilizing pytwmn.")
return
# self.type = type = "default"