aboutsummaryrefslogtreecommitdiff
path: root/src/ppm
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-12-26 19:12:11 +0100
committerGuido Günther <agx@sigxcpu.org>2011-12-27 11:19:47 +0100
commit1448c4de0cdebfe68f538da2ea28b81a564e86f5 (patch)
tree5a85f11d4ea59f4926e0eeff4d51d88852ccd539 /src/ppm
parent08274f34113d87940e949a1a77f9c51e16c70847 (diff)
Remove trailing whitespace
Diffstat (limited to 'src/ppm')
-rw-r--r--src/ppm/accountdb.py4
-rw-r--r--src/ppm/modemproxy.py6
-rw-r--r--src/ppm/providerdb.py8
3 files changed, 9 insertions, 9 deletions
diff --git a/src/ppm/accountdb.py b/src/ppm/accountdb.py
index 744cd0b..70c7bb6 100644
--- a/src/ppm/accountdb.py
+++ b/src/ppm/accountdb.py
@@ -89,7 +89,7 @@ class AccountDB(object):
def _bind_account(self, imsi):
"""Bind a new account object to a gsettings path"""
-
+
path = self._account_path(imsi)
account = Account()
account.props.identifier = self.imsi_to_identifier(imsi)
@@ -136,4 +136,4 @@ class AccountDB(object):
account.props.name = provider.name
account.props.code = provider.country
-
+
diff --git a/src/ppm/modemproxy.py b/src/ppm/modemproxy.py
index fddea25..7ac8fa7 100644
--- a/src/ppm/modemproxy.py
+++ b/src/ppm/modemproxy.py
@@ -27,7 +27,7 @@ class ModemError(Exception):
def is_forbidden(self):
return [False, True][self.msg.find("Operation not allowed") != -1]
-
+
def is_disabled(self):
return [False, True][self.msg.find("not enabled") != -1]
@@ -47,7 +47,7 @@ class ModemManagerProxy(GObject.GObject):
MM_DBUS_INTERFACE_MODEM_GSM_CARD='org.freedesktop.ModemManager.Modem.Gsm.Card'
MM_DBUS_INTERFACE_MODEM_GSM_USSD='org.freedesktop.ModemManager.Modem.Gsm.Ussd'
MM_DBUS_TIMEOUT = 5000
-
+
__gsignals__ = {
# Emitted when a request to MM starts
'request-started': (GObject.SignalFlags.RUN_FIRST, None,
@@ -110,7 +110,7 @@ class ModemManagerProxy(GObject.GObject):
if self.error_func:
me = ModemError("%s failed: %s" % (self.request, err))
self.error_func(me)
-
+
def get_modems(self):
modems = []
mm = Gio.DBusProxy.new_sync(self.bus,
diff --git a/src/ppm/providerdb.py b/src/ppm/providerdb.py
index 8aafa27..db2bdc9 100644
--- a/src/ppm/providerdb.py
+++ b/src/ppm/providerdb.py
@@ -48,7 +48,7 @@ class ProviderDB(object):
else:
self._tree = self._load_countries()
return self.__countries
-
+
def _load_countries(self):
try:
for line in file(self.country_codes, 'r'):
@@ -95,7 +95,7 @@ class ProviderDB(object):
number = t.text
text = t.attrib['text']
provider.add_top_up_cmd({'sms': (number, text)})
-
+
def get_providers(self, mcc, mnc):
"""
Get possible providers for the current mcc and mnc from the database
@@ -119,7 +119,7 @@ class ProviderDB(object):
for r in searcher(self.tree):
return self._fill_provider_info(r)
return None
-
+
def get_country_codes(self):
path = "/serviceproviders/country"
searcher = etree.ETXPath(path)
@@ -133,7 +133,7 @@ class ProviderDB(object):
yield (self.countries[code], code)
except KeyError:
yield (None, code)
-
+
def get_providers_by_code(self, country_code):
path = ("/serviceproviders/country[@code='%s']/provider/name" %
country_code)