Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/bazarr/src/commit/a4d9eb694d675c0b85ad7d1b88574241232d1a82/libs/libfuturize/fixes/fix_xrange_with_import.py You should set ROOT_URL correctly, otherwise the web may not work correctly.
bazarr/libs/libfuturize/fixes/fix_xrange_with_import.py

21 lines
479 B

"""
For the ``future`` package.
Turns any xrange calls into range calls and adds this import line:
from builtins import range
at the top.
"""
from lib2to3.fixes.fix_xrange import FixXrange
from libfuturize.fixer_util import touch_import_top
class FixXrangeWithImport(FixXrange):
def transform(self, node, results):
result = super(FixXrangeWithImport, self).transform(node, results)
touch_import_top('builtins', 'range', node)
return result