Skip to content

Commit b67061f

Browse files
committed
Try make doc string for token_split into a raw string. \o and other
escape chars in it.
1 parent 97d9c5f commit b67061f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

roundup/token.py

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

1616
def token_split(s, whitespace=' \r\n\t', quotes='\'"',
1717
escaped={'r':'\r', 'n':'\n', 't':'\t'}):
18-
'''Split the string up into tokens. An occurence of a ``'`` or ``"`` in
18+
r'''Split the string up into tokens. An occurence of a ``'`` or ``"`` in
1919
the input will cause the splitter to ignore whitespace until a matching
2020
quote char is found. Embedded non-matching quote chars are also skipped.
2121
@@ -30,7 +30,7 @@ def token_split(s, whitespace=' \r\n\t', quotes='\'"',
3030
"Roch'e" Compaan (2 tokens: Roch'e Compaan)
3131
Roch\'e Compaan (2 tokens: Roch'e Compaan)
3232
address="1 2 3" (1 token: address=1 2 3)
33-
\\ (1 token: \\)
33+
\\ (1 token: \)
3434
\n (1 token: a newline)
3535
\o (1 token: \o)
3636

0 commit comments

Comments
 (0)