don't need allSounds/stripSounds in qt's sound.py

This commit is contained in:
Damien Elmes 2020-01-20 20:12:48 +10:00
parent 02ec3f149c
commit 7900f68051

View file

@ -652,6 +652,7 @@ def setup_audio(base_folder: str) -> None:
av_player.players.append(MacTTSPlayer()) av_player.players.append(MacTTSPlayer())
# Legacy audio interface # Legacy audio interface
########################################################################## ##########################################################################
# these will be removed in the future # these will be removed in the future
@ -674,11 +675,6 @@ def playFromText(text) -> None:
_player = play _player = play
_queueEraser = clearAudioQueue _queueEraser = clearAudioQueue
# imports that add-ons may be expecting
# fmt:off
from anki.sound import allSounds, stripSounds # isort:skip pylint: disable=unused-import
# fmt:on
# add everything from this module into anki.sound for backwards compat # add everything from this module into anki.sound for backwards compat
_exports = [i for i in locals().items() if not i[0].startswith("__")] _exports = [i for i in locals().items() if not i[0].startswith("__")]
for (k, v) in _exports: for (k, v) in _exports: