python2 support fixes
This commit is contained in:
parent
e36cf4b81e
commit
fbb1f8e434
@ -4,18 +4,7 @@
|
|||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": 1,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"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"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"from shiroindev import *\n",
|
"from shiroindev import *\n",
|
||||||
"sSeed=1"
|
"sSeed=1"
|
||||||
|
@ -4,18 +4,7 @@
|
|||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 1,
|
"execution_count": 1,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"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"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"from shiroindev import *\n",
|
"from shiroindev import *\n",
|
||||||
"sSeed=1"
|
"sSeed=1"
|
||||||
|
Loading…
Reference in New Issue
Block a user