Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/commit/240a3759cf131fdee8767871ee68356785ff4f9e?style=unified&whitespace=show-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Partial fix for : js2py issue under Python 3.8+

pull/1232/head^2 v0.9.0.8
morpheus65535 4 years ago
parent b291746a49
commit 240a3759cf

@ -115,7 +115,16 @@ def append_arguments(code_obj, new_locals):
code_obj.co_freevars, code_obj.co_cellvars)
# Done modifying codestring - make the code object
return types.CodeType(*args)
if hasattr(code_obj, "replace"):
# Python 3.8+
return code_obj.replace(
co_argcount=co_argcount + new_locals_len,
co_nlocals=code_obj.co_nlocals + new_locals_len,
co_code=code,
co_names=names,
co_varnames=varnames)
else:
return types.CodeType(*args)
def instructions(code_obj):

Loading…
Cancel
Save