summaryrefslogtreecommitdiff
path: root/alot/helper.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2016-12-14 14:05:20 -0800
committerDylan Baker <dylan@pnwbakers.com>2016-12-21 17:09:25 -0800
commit236bfb5cbde93df7ebf725ff433f37541a529227 (patch)
tree804c88444f3dc1cda7b9d0256670f05cb19f3024 /alot/helper.py
parent581ed2987bd456d2894637a30bb5a14a4caa5f9b (diff)
Use raw strings with backslashes
This just adds the `r` prefix to a few strings.
Diffstat (limited to 'alot/helper.py')
-rw-r--r--alot/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/helper.py b/alot/helper.py
index 4e3d4f75..a79f72cb 100644
--- a/alot/helper.py
+++ b/alot/helper.py
@@ -625,7 +625,7 @@ def email_as_string(mail):
# clients can verify the signature when sending an email which contains
# attachments.
as_string = re.sub(r'--(\r\n)--' + boundary,
- '--\g<1>\g<1>--' + boundary,
+ r'--\g<1>\g<1>--' + boundary,
as_string, flags=re.MULTILINE)
return as_string