diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-09-16 09:30:02 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-09-16 09:30:02 +0300 |
commit | 72c37c147cff79d9eea594b2bb8833f177bcd1a7 (patch) | |
tree | dc5bc455767a3d21348840eda9b763cd2424d79d /servo/messaging | |
parent | afb58647a8f5004ed3288a35aabb800a1703212a (diff) | |
download | Servo-72c37c147cff79d9eea594b2bb8833f177bcd1a7.tar.gz Servo-72c37c147cff79d9eea594b2bb8833f177bcd1a7.tar.bz2 Servo-72c37c147cff79d9eea594b2bb8833f177bcd1a7.zip |
Cleanup
Diffstat (limited to 'servo/messaging')
-rw-r--r-- | servo/messaging/sms.py | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/servo/messaging/sms.py b/servo/messaging/sms.py index a51db7a..55a3d77 100644 --- a/servo/messaging/sms.py +++ b/servo/messaging/sms.py @@ -1,28 +1,4 @@ # -*- coding: utf-8 -*- -# Copyright (c) 2013, First Party Software -# All rights reserved. - -# Redistribution and use in source and binary forms, with or without modification, -# are permitted provided that the following conditions are met: - -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. - -# 2. Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. - -# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE -# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT -# OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) -# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, -# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF -# SUCH DAMAGE. import re import urllib @@ -32,7 +8,7 @@ from django.utils.translation import ugettext as _ from servo.models.common import Configuration -class BaseSMSProvider(object): +class BaseSMSProvider: def __init__(self, recipient, note, msg): self.conf = Configuration.conf() @@ -51,7 +27,7 @@ class BaseSMSProvider(object): self.body = self.note.body.encode('utf-8') -class SMSJazzProvider(object): +class SMSJazzProvider: """ SMS Jazz gateway provider Used mainly by Estonian AASPs, hence default prefix of 372 @@ -171,7 +147,7 @@ class HQSMSProvider(BaseSMSProvider): pass -class HttpProvider(object): +class HttpProvider: """ Sends SMS through a HTTP gateway (ie Kannel) """ |