markolofsen / py_translator

The end goal is a simple application for translating text in the terminal. Text can be generated interactively or programmatically in the shell environment.

Home Page:https://pypi.org/project/py-translator/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sre_constants.error: multiple repeat at position 97

nqzhang opened this issue · comments

File "/usr/lib/python3.6/site-packages/py_translator/html_connector.py", line 43, in translator
return superTranslator().html(text, lang_to)
File "/usr/lib/python3.6/site-packages/py_translator/html_translator.py", line 217, in html
text = self.tagsReplacer(direction='in', text=text)
File "/usr/lib/python3.6/site-packages/py_translator/html_translator.py", line 164, in tagsReplacer
text = re.sub(link, '(111{})'.format(i), text)
File "/usr/lib64/python3.6/re.py", line 191, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "/usr/lib64/python3.6/re.py", line 301, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib64/python3.6/sre_compile.py", line 562, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib64/python3.6/sre_parse.py", line 855, in parse
p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib64/python3.6/sre_parse.py", line 416, in _parse_sub
not nested and not items))
File "/usr/lib64/python3.6/sre_parse.py", line 619, in _parse
source.tell() - here + len(this))
sre_constants.error: multiple repeat at position 97