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/e3f9030463cf1964ce22a32d41d3374e3b2a322c/libs/pysrt/compat.py
You should set ROOT_URL correctly, otherwise the web may not work correctly.
|
|
|
import sys
|
|
|
|
# Syntax sugar.
|
|
_ver = sys.version_info
|
|
|
|
#: Python 2.x?
|
|
is_py2 = (_ver[0] == 2)
|
|
|
|
#: Python 3.x?
|
|
is_py3 = (_ver[0] == 3)
|
|
|
|
from io import open as io_open
|
|
|
|
if is_py2:
|
|
basestring = basestring
|
|
str = unicode
|
|
open = io_open
|
|
elif is_py3:
|
|
basestring = (str, bytes)
|
|
str = str
|
|
open = open
|