summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2014-03-03 16:10:30 +0100
committerMartin Vilcans <martin@librador.com>2014-03-03 16:10:30 +0100
commit2f06d0da48ec344c86b69618975cd3efcb100207 (patch)
tree826e04fc6d3cf81ffac3b3f43c9d85563bcc6167
parent25b790b14bc0965664d4e1580dd685b9fe920a04 (diff)
Use raw strings in docstrings with backslashes in them
-rw-r--r--screenplain/richstring.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/screenplain/richstring.py b/screenplain/richstring.py
index 19fd45d..2821fcc 100644
--- a/screenplain/richstring.py
+++ b/screenplain/richstring.py
@@ -232,7 +232,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\*')
@@ -243,7 +243,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*'