diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-12-26 19:12:11 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-12-27 11:19:47 +0100 |
commit | 1448c4de0cdebfe68f538da2ea28b81a564e86f5 (patch) | |
tree | 5a85f11d4ea59f4926e0eeff4d51d88852ccd539 /src/ppm/providerdb.py | |
parent | 08274f34113d87940e949a1a77f9c51e16c70847 (diff) |
Remove trailing whitespace
Diffstat (limited to 'src/ppm/providerdb.py')
-rw-r--r-- | src/ppm/providerdb.py | 8 |
1 files changed, 4 insertions, 4 deletions
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) |