Skip to content

Commit

Permalink
Merge pull request #132 from flokli/backslash-plague
Browse files Browse the repository at this point in the history
afew.utils: fix DeprecationWarning: invalid escape sequence \.
  • Loading branch information
GuillaumeSeren committed May 24, 2017
2 parents bbbaa55 + 73abd37 commit 8a6df81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion afew/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_message_summary(message):

def get_sender(message):
sender = message.get_header('From')
name_match = re.search('(.+) <.+@.+\..+>', sender)
name_match = re.search(r'(.+) <.+@.+\..+>', sender)
if name_match:
sender = name_match.group(1)
return sender

0 comments on commit 8a6df81

Please sign in to comment.