58 lines
1.5 KiB
Diff
58 lines
1.5 KiB
Diff
|
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
|
||
|
+++ b/pyload/core/utils/misc.py
|
||
|
@@ -3,11 +3,6 @@
|
||
|
import random
|
||
|
import string
|
||
|
|
||
|
-import js2py
|
||
|
-
|
||
|
-js2py.disable_pyimport()
|
||
|
-
|
||
|
-
|
||
|
def random_string(length):
|
||
|
seq = string.ascii_letters + string.digits + string.punctuation
|
||
|
return "".join(random.choice(seq) for _ in range(length))
|
||
|
@@ -23,8 +18,7 @@ def is_plural(value):
|
||
|
|
||
|
def eval_js(script, es6=False):
|
||
|
# return requests_html.HTML().render(script=script, reload=False)
|
||
|
- return (js2py.eval_js6 if es6 else js2py.eval_js)(script)
|
||
|
-
|
||
|
+ return None
|
||
|
|
||
|
def accumulate(iterable, to_map=None):
|
||
|
"""
|
||
|
--
|
||
|
|