Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5dc064

Browse files
author
Matthias Bussonnier
committed
Use explicit fully qualified name instead of uncommon alias.
We can't use 'wrap' as there is a kwarg with the same name.
1 parent 978f4da commit e5dc064

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

IPython/lib/latextools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import shutil
1111
import subprocess
1212
from base64 import encodebytes
13-
from textwrap import wrap as splitstring
13+
import textwrap
1414

1515
from IPython.utils.process import find_cmd, FindCmdError
1616
from traitlets.config import get_config
@@ -94,7 +94,7 @@ def latex_to_png(s, encode=False, backend=None, wrap=False, color='Black',
9494
if len(color) == 7:
9595
try:
9696
color = "RGB {}".format(" ".join([str(int(x, 16)) for x in
97-
splitstring(color[1:], 2)]))
97+
textwrap.wrap(color[1:], 2)]))
9898
except ValueError:
9999
raise ValueError('Invalid color specification {}.'.format(color))
100100
else:

0 commit comments

Comments
 (0)