Skip to content

Commit

Permalink
fix: Exscript.util.mail would not accept unicode strings for email ad…
Browse files Browse the repository at this point in the history
…dresses
  • Loading branch information
knipknap committed Mar 17, 2017
1 parent 8f6378b commit 995d548
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Exscript/util/mail.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#
#
# Copyright (C) 2010-2017 Samuel Abels
# The MIT License (MIT)
#
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Expand Down Expand Up @@ -95,7 +95,7 @@ def _cleanup_mail_addresses(receipients):
if isinstance(receipients, list):
receipients = ','.join(receipients)
rcpt = re.split(r'\s*[,;]\s*', receipients.lower())
return [r for r in rcpt if r.strip()]
return [str(r) for r in rcpt if r.strip()]

###########################################################
# Public.
Expand Down

0 comments on commit 995d548

Please sign in to comment.