Support Python 3 using six
This commit is contained in:
parent
d653a3a3f7
commit
eedb4c4b73
67 changed files with 455 additions and 255 deletions
|
|
@ -30,7 +30,7 @@ class Message(object):
|
|||
@property
|
||||
def md5(self):
|
||||
body_md5 = hashlib.md5()
|
||||
body_md5.update(self.body)
|
||||
body_md5.update(self.body.encode('utf-8'))
|
||||
return body_md5.hexdigest()
|
||||
|
||||
def mark_sent(self, delay_seconds=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue