diff options
author | Lucas Hoffmann <lucc@posteo.de> | 2019-11-04 08:00:10 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-11-06 10:54:00 +0000 |
commit | 414ca6c4b57752d139598e95e06009c55ff4543c (patch) | |
tree | a77d60aaf05f2c75224df95f7481f7328e414e7a /alot/db/envelope.py | |
parent | bbb96525c08f0c6ee9fc93e0dd0ccb3abfd1dca8 (diff) |
Remove unicode literals syntax from python2
Diffstat (limited to 'alot/db/envelope.py')
-rw-r--r-- | alot/db/envelope.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/db/envelope.py b/alot/db/envelope.py index 35aa0fee..291ee849 100644 --- a/alot/db/envelope.py +++ b/alot/db/envelope.py @@ -78,7 +78,7 @@ class Envelope: self.parse_template(template) logging.debug('PARSED TEMPLATE: %s', template) logging.debug('BODY: %s', self.body) - self.body = bodytext or u'' + self.body = bodytext or '' # TODO: if this was as collections.defaultdict a number of methods # could be simplified. self.headers = headers or {} @@ -100,7 +100,7 @@ class Envelope: def __setitem__(self, name, val): """setter for header values. This allows adding header like so: - envelope['Subject'] = u'sm\xf8rebr\xf8d' + envelope['Subject'] = 'sm\xf8rebr\xf8d' """ if name not in self.headers: self.headers[name] = [] |