update patch
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/manual/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2024-01-13 22:07:33 +01:00
parent c3e3180191
commit 017f211457

View file

@ -1,32 +1,3 @@
diff --git a/pyload/core/utils/check.py b/pyload/core/utils/check.py
index 3c98fd490..4f135cf0b 100644
--- a/pyload/core/utils/check.py
+++ b/pyload/core/utils/check.py
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
-import imp
from collections.abc import Iterable, Mapping, Sequence
@@ -54,17 +53,6 @@ def is_mapping(obj):
return isinstance(obj, Mapping)
-def is_module(name, path=None):
- """Check if exists a module with given name."""
- try:
- fp, _, _ = imp.find_module(name, path)
- if fp is not None:
- fp.close()
- return True
- except ImportError:
- return False
-
-
def missing(iterable, start=None, end=None):
"""List all the values between 'start' and 'stop' that are missing from 'iterable'."""
iter_seq = set(map(int, iterable))
diff --git a/pyload/core/utils/misc.py b/pyload/core/utils/misc.py
index 6d2f23cc5..96d931108 100644
--- a/pyload/core/utils/misc.py