From 72c37c147cff79d9eea594b2bb8833f177bcd1a7 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Wed, 16 Sep 2015 09:30:02 +0300 Subject: Cleanup --- servo/messaging/sms.py | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) (limited to 'servo/messaging/sms.py') 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) """ -- cgit v1.2.3