Skip to content

Commit

Permalink
Remove wqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
Liquid369 committed Oct 26, 2024
1 parent 9f218b0 commit 540a18a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from PyQt5.QtCore import QObject, pyqtSignal, QSettings
from PyQt5.QtWidgets import QMessageBox

from constants import log_File, DefaultCache, wqueue, MAX_INPUTS_NO_WARNING
from constants import log_File, DefaultCache, MAX_INPUTS_NO_WARNING


def add_defaultKeys_to_dict(dictObj: Dict[str, Any], defaultObj: Dict[str, Any]) -> None:
Expand Down Expand Up @@ -258,11 +258,10 @@ def readCacheSettings() -> Dict[str, Any]:
return DefaultCache


def redirect_print(what: str, wqueue: Any) -> None:
def redirect_print(what: str) -> None:
with io.StringIO() as buffer:
with redirect_stdout(buffer):
print(what)
WriteStream(wqueue).write(buffer.getvalue())


def saveCacheSettings(cache: Dict[str, Any]) -> None:
Expand Down

0 comments on commit 540a18a

Please sign in to comment.