diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 29830b89c..69ec3e50d 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -455,7 +455,7 @@ def _run(argv=None, exec=True): QCoreApplication.setAttribute(Qt.AA_UseSoftwareOpenGL) if isWin and qtminor == 15 and qtpoint == 0: - os.environ["QT_QPA_PLATFORM"]="windows:altgr" + os.environ["QT_QPA_PLATFORM"] = "windows:altgr" # create the app QCoreApplication.setApplicationName("Anki") diff --git a/qt/aqt/mediasrv.py b/qt/aqt/mediasrv.py index 4faaf190a..c1d5be1f7 100644 --- a/qt/aqt/mediasrv.py +++ b/qt/aqt/mediasrv.py @@ -162,10 +162,7 @@ def allroutes(pathin): # swallow it - user likely surfed away from # review screen before an image had finished # downloading - return flask.make_response( - str(error), - HTTPStatus.INTERNAL_SERVER_ERROR, - ) + return flask.make_response(str(error), HTTPStatus.INTERNAL_SERVER_ERROR,) def _redirectWebExports(path): diff --git a/qt/aqt/sound.py b/qt/aqt/sound.py index bdb66ad25..fd8c637cb 100644 --- a/qt/aqt/sound.py +++ b/qt/aqt/sound.py @@ -342,7 +342,7 @@ class MpvManager(MPV, SoundOrVideoPlayer): self.command("keybind", "ctrl+w", "stop") self.command("keybind", "ctrl+c", "stop") except MPVCommandError: - print("mpv too old") + print("mpv too old for key rebinding") def play(self, tag: AVTag, on_done: OnDoneCallback) -> None: assert isinstance(tag, SoundOrVideoTag)