aboutsummaryrefslogtreecommitdiffstats
path: root/servo/messaging
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2016-02-03 13:15:40 +0200
committerFilipp Lepalaan <filipp@mac.com>2016-02-03 13:15:40 +0200
commit904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8 (patch)
tree9742797de4279285a5ec72d8c7adbb05292cf088 /servo/messaging
parentead9662f6c3a0dfa77bf64c92c215f3e8367f902 (diff)
downloadServo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.tar.gz
Servo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.tar.bz2
Servo-904537c9dd343f92e4f95eb1e5e047e5ac7e8ca8.zip
Fix deprecation warnings in urlconfs
Diffstat (limited to 'servo/messaging')
-rw-r--r--servo/messaging/sms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/servo/messaging/sms.py b/servo/messaging/sms.py
index 352a297..9ba8278 100644
--- a/servo/messaging/sms.py
+++ b/servo/messaging/sms.py
@@ -20,7 +20,7 @@ class BaseSMSProvider:
if len(recipient) < 8:
recipient = '372' + recipient
-
+
recipient = re.sub(r'[\+\s\-]', '', recipient)
self.recipient = recipient.lstrip('+')
self.note = note
@@ -49,7 +49,7 @@ class SMSJazzProvider:
def __init__(self, recipient, note, msg):
if len(recipient) < 8:
recipient = '372' + recipient
-
+
recipient = re.sub(r'[\+\s\-]', '', recipient)
self.recipient = recipient.lstrip('+')
self.note = note