diff options
author | Martin Vilcans <martin@librador.com> | 2014-03-03 16:10:30 +0100 |
---|---|---|
committer | Martin Vilcans <martin@librador.com> | 2014-03-03 16:10:42 +0100 |
commit | e4b83cba87fdd077323831d71402a1775b7435e4 (patch) | |
tree | 372e27635132f098be6b10b7f36c712ace35023c | |
parent | 8b0e94fb16b45632dc1f57ffdf9e76768a8aa656 (diff) | |
download | screenplain-e4b83cba87fdd077323831d71402a1775b7435e4.tar.gz |
Use raw strings in docstrings with backslashes in them
-rw-r--r-- | screenplain/richstring.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/screenplain/richstring.py b/screenplain/richstring.py index 43f5949..a72f948 100644 --- a/screenplain/richstring.py +++ b/screenplain/richstring.py @@ -215,7 +215,7 @@ all_styles = (Bold, Italic, Underline) def _unescape(source): - """Converts backslash-escaped stars in a string to the magic + r"""Converts backslash-escaped stars in a string to the magic "literal star" character. >>> _unescape(r'\*hello\*') @@ -226,7 +226,7 @@ def _unescape(source): def _demagic_literals(text): - """Converts "literal star" characters to actual stars: "*" + r"""Converts "literal star" characters to actual stars: "*" >>> _demagic_literals(u'\ue706hello\ue706') u'*hello*' |