python2 support fixes

This commit is contained in:
urojony 2020-04-11 09:24:54 +02:00
parent e36cf4b81e
commit fbb1f8e434
2 changed files with 2 additions and 24 deletions

View File

@ -4,18 +4,7 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/grzegorz/shiroindev/shiroindev.py:40: DeprecationWarning: invalid escape sequence \\^\n",
" formula=re.sub('\\^{(.)}',r'^\\1',latex(formula,fold_short_frac=True).replace(' ','').replace('\\\\left(','(').replace('\\\\right)',')'))\n",
"/home/grzegorz/shiroindev/shiroindev.py:41: DeprecationWarning: invalid escape sequence \\{\n",
" return re.sub('\\{(\\(.+?\\))\\}',r'\\1',formula)\n"
]
}
],
"outputs": [],
"source": [
"from shiroindev import *\n",
"sSeed=1"

View File

@ -4,18 +4,7 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/home/grzegorz/shiroindev/shiroindev.py:42: DeprecationWarning: invalid escape sequence \\^\n",
" formula=re.sub('\\^{(.)}',r'^\\1',latex(formula,fold_short_frac=True).replace(' ','').replace('\\\\left(','(').replace('\\\\right)',')'))\n",
"/home/grzegorz/shiroindev/shiroindev.py:43: DeprecationWarning: invalid escape sequence \\{\n",
" return re.sub('\\{(\\(.+?\\))\\}',r'\\1',formula)\n"
]
}
],
"outputs": [],
"source": [
"from shiroindev import *\n",
"sSeed=1"