Skip to content

Commit

Permalink
Fix for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mortal committed Jul 5, 2017
1 parent c7b471c commit 0f2c8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emailtunnel/mailhole.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def deliver_mailhole(self, original_envelope, message, recipients, sender):
raise Exception("You must pip install requests!")
with requests.Session() as session:
orig_message_bytes = re.sub(br'(\r\n|\n|\r)', b'\r\n',
original_envelope.message.as_bytes())
original_envelope.message.as_binary())
message_bytes = re.sub(br'(\r\n|\n|\r)', b'\r\n',
message.as_binary())
data = dict(
Expand Down

0 comments on commit 0f2c8d4

Please sign in to comment.