Minor cleanup

This commit is contained in:
oobabooga 2026-03-20 07:20:26 -07:00
parent 843de8b8a8
commit 2e4232e02b
2 changed files with 1 additions and 9 deletions

View file

@ -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:

View file

@ -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)]