fix: remove patch js2py
This commit is contained in:
parent
e8e4ff79c6
commit
481f57daf9
@ -27,8 +27,6 @@ RUN \
|
|||||||
PYLOAD="pyload-ng[all]==${VERSION}"; \
|
PYLOAD="pyload-ng[all]==${VERSION}"; \
|
||||||
fi && \
|
fi && \
|
||||||
pip3 install --no-cache-dir --break-system-packages -U "${PYLOAD}" && \
|
pip3 install --no-cache-dir --break-system-packages -U "${PYLOAD}" && \
|
||||||
pip uninstall -y Js2Py && \
|
|
||||||
cd /usr/local/lib/python3.12/site-packages/ && patch -Np1 < /py3-12.patch && cd / \
|
|
||||||
echo "**** cleanup ****" && \
|
echo "**** cleanup ****" && \
|
||||||
apk del --purge \
|
apk del --purge \
|
||||||
build-dependencies && \
|
build-dependencies && \
|
||||||
|
28
py3-12.patch
28
py3-12.patch
@ -1,28 +0,0 @@
|
|||||||
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):
|
|
||||||
"""
|
|
||||||
--
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user