Skip to content

Commit 8ed401b

Browse files
authored
Merge pull request #394 from eendebakpt/fix/escape_warnings
Fix escape warnings
2 parents 491f133 + 3603878 commit 8ed401b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

symengine/utilities.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def symbols(names, **args):
12-
"""
12+
r"""
1313
Transform strings into instances of :class:`Symbol` class.
1414
:func:`symbols` function returns a sequence of symbols with names taken
1515
from ``names`` argument, which can be a comma or whitespace delimited
@@ -86,7 +86,7 @@ def symbols(names, **args):
8686

8787
if isinstance(names, str):
8888
marker = 0
89-
literals = ['\,', '\:', '\ ']
89+
literals = [r'\,', r'\:', r'\ ']
9090
for i in range(len(literals)):
9191
lit = literals.pop(0)
9292
if lit in names:

0 commit comments

Comments
 (0)