diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2016-12-14 14:05:20 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2016-12-21 17:09:25 -0800 |
commit | 236bfb5cbde93df7ebf725ff433f37541a529227 (patch) | |
tree | 804c88444f3dc1cda7b9d0256670f05cb19f3024 /alot/db/envelope.py | |
parent | 581ed2987bd456d2894637a30bb5a14a4caa5f9b (diff) |
Use raw strings with backslashes
This just adds the `r` prefix to a few strings.
Diffstat (limited to 'alot/db/envelope.py')
-rw-r--r-- | alot/db/envelope.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/db/envelope.py b/alot/db/envelope.py index b9513b1f..02a4a212 100644 --- a/alot/db/envelope.py +++ b/alot/db/envelope.py @@ -292,7 +292,7 @@ class Envelope(object): if only_body: self.body = tmp else: - m = re.match('(?P<h>([a-zA-Z0-9_-]+:.+\n)*)\n?(?P<b>(\s*.*)*)', + m = re.match(r'(?P<h>([a-zA-Z0-9_-]+:.+\n)*)\n?(?P<b>(\s*.*)*)', tmp) assert m |