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/utils.py | |
parent | 581ed2987bd456d2894637a30bb5a14a4caa5f9b (diff) |
Use raw strings with backslashes
This just adds the `r` prefix to a few strings.
Diffstat (limited to 'alot/db/utils.py')
-rw-r--r-- | alot/db/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/db/utils.py b/alot/db/utils.py index ab20e26b..71c46931 100644 --- a/alot/db/utils.py +++ b/alot/db/utils.py @@ -400,7 +400,7 @@ def encode_header(key, value): rawentries = value.split(',') encodedentries = [] for entry in rawentries: - m = re.search('\s*(.*)\s+<(.*\@.*\.\w*)>\s*$', entry) + m = re.search(r'\s*(.*)\s+<(.*\@.*\.\w*)>\s*$', entry) if m: # If a realname part is contained name, address = m.groups() # try to encode as ascii, if that fails, revert to utf-8 |