From a19b1be338e7fd0d8207bb8cfe93f154f513ec41 Mon Sep 17 00:00:00 2001 From: Laurent Bachelier Date: Thu, 2 Feb 2012 14:26:10 +0100 Subject: [PATCH] The past participle of split is "split", not "splitted" --- modules/canalplus/backend.py | 4 ++-- modules/canalplus/browser.py | 4 ++-- modules/nova/backend.py | 4 ++-- modules/ouifm/backend.py | 4 ++-- modules/radiofrance/backend.py | 4 ++-- weboob/capabilities/bank.py | 4 ++-- weboob/capabilities/collection.py | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/canalplus/backend.py b/modules/canalplus/backend.py index 5d7f48fbd3..4b9491f955 100644 --- a/modules/canalplus/backend.py +++ b/modules/canalplus/backend.py @@ -71,6 +71,6 @@ def fill_video(self, video, fields): OBJECTS = {CanalplusVideo: fill_video} - def iter_resources(self, splited_path): + def iter_resources(self, split_path): with self.browser: - return self.browser.iter_resources(splited_path) + return self.browser.iter_resources(split_path) diff --git a/modules/canalplus/browser.py b/modules/canalplus/browser.py index d65f731371..cdc074af59 100644 --- a/modules/canalplus/browser.py +++ b/modules/canalplus/browser.py @@ -77,7 +77,7 @@ def get_video(self, url, video=None): self.location(url) return self.page.get_video(video, self.quality) - def iter_resources(self, splited_path): + def iter_resources(self, split_path): self.home() collections = self.page.collections @@ -90,4 +90,4 @@ def walk_res(path, collections): return walk_res(path[1:], [collection.children for collection in collections if collection.title == i][0]) - return walk_res(splited_path, collections) + return walk_res(split_path, collections) diff --git a/modules/nova/backend.py b/modules/nova/backend.py index a25189cde4..05e0a39b7e 100644 --- a/modules/nova/backend.py +++ b/modules/nova/backend.py @@ -62,8 +62,8 @@ class NovaBackend(BaseBackend, ICapRadio, ICapCollection): _RADIOS = {'nova': (u'Radio Nova', u'Radio nova', u'http://broadcast.infomaniak.net:80/radionova-high.mp3'), } - def iter_resources(self, splited_path): - if len(splited_path) > 0: + def iter_resources(self, split_path): + if len(split_path) > 0: raise CollectionNotFound() for id in self._RADIOS.iterkeys(): diff --git a/modules/ouifm/backend.py b/modules/ouifm/backend.py index ed0e808708..9c68837703 100644 --- a/modules/ouifm/backend.py +++ b/modules/ouifm/backend.py @@ -46,8 +46,8 @@ class OuiFMBackend(BaseBackend, ICapRadio, ICapCollection): def create_default_browser(self): return self.create_browser(parser='json') - def iter_resources(self, splited_path): - if len(splited_path) > 0: + def iter_resources(self, split_path): + if len(split_path) > 0: raise CollectionNotFound() for id in self._RADIOS.iterkeys(): diff --git a/modules/radiofrance/backend.py b/modules/radiofrance/backend.py index 9697f69bae..f7eed34aae 100644 --- a/modules/radiofrance/backend.py +++ b/modules/radiofrance/backend.py @@ -155,8 +155,8 @@ class RadioFranceBackend(BaseBackend, ICapRadio, ICapCollection): _DIRECTJSON_RADIOS = ('lemouv', 'franceinter', ) _RSS_RADIOS = ('francemusique', ) - def iter_resources(self, splited_path): - if len(splited_path) > 0: + def iter_resources(self, split_path): + if len(split_path) > 0: raise CollectionNotFound() for id in sorted(self._RADIOS.iterkeys()): diff --git a/weboob/capabilities/bank.py b/weboob/capabilities/bank.py index e4347fca2d..60c4f79f48 100644 --- a/weboob/capabilities/bank.py +++ b/weboob/capabilities/bank.py @@ -74,8 +74,8 @@ def __init__(self, id): self.add_field('recipient', (int, long, basestring)) class ICapBank(ICapCollection): - def iter_resources(self, splited_path): - if len(splited_path) > 0: + def iter_resources(self, split_path): + if len(split_path) > 0: raise CollectionNotFound() return self.iter_accounts() diff --git a/weboob/capabilities/collection.py b/weboob/capabilities/collection.py index fd19db5763..70e467b727 100644 --- a/weboob/capabilities/collection.py +++ b/weboob/capabilities/collection.py @@ -60,5 +60,5 @@ class Ressource(object): pass class ICapCollection(IBaseCap): - def iter_resources(self, splited_path): + def iter_resources(self, split_path): raise NotImplementedError() -- GitLab