From 2e4232e02bdf7640470ba1efdc5e72f1cd56b867 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 20 Mar 2026 07:20:26 -0700 Subject: [PATCH] Minor cleanup --- modules/callbacks.py | 2 +- modules/utils.py | 8 -------- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/modules/callbacks.py b/modules/callbacks.py index 89fb6c08..6288de29 100644 --- a/modules/callbacks.py +++ b/modules/callbacks.py @@ -34,7 +34,7 @@ class Iteratorize: def gentask(): try: - ret = self.mfunc(callback=_callback, *args, **self.kwargs) + ret = self.mfunc(callback=_callback, *self.args, **self.kwargs) except StopNowException: pass except Exception: diff --git a/modules/utils.py b/modules/utils.py index ff32e974..b01953ee 100644 --- a/modules/utils.py +++ b/modules/utils.py @@ -81,14 +81,6 @@ def atoi(text): return int(text) if text.isdigit() else text.lower() -# Replace multiple string pairs in a string -def replace_all(text, dic): - for i, j in dic.items(): - text = text.replace(i, j) - - return text - - def natural_keys(text): return [atoi(c) for c in re.split(r'(\d+)', text)]