[weboob] [PATCH 1/2] [radiofrance] start porting to python3

Denis 'GNUtoo' Carikli GNUtoo at no-log.org
Sat Apr 21 17:17:50 CEST 2018


Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at no-log.org>
---
 modules/radiofrance/module.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/radiofrance/module.py b/modules/radiofrance/module.py
index 060262c95..260b5c5a2 100644
--- a/modules/radiofrance/module.py
+++ b/modules/radiofrance/module.py
@@ -215,14 +215,14 @@ class RadioFranceModule(Module, CapRadio, CapCollection, CapAudio):
 
     def iter_resources(self, objs, split_path):
         if len(split_path) == 0:
-            for _id, item in sorted(self._RADIOS.iteritems()):
+            for _id, item in sorted(self._RADIOS.items()):
                 if not _id.startswith('fb'):
                     yield Collection([_id], item['title'])
             yield Collection([u'francebleu'], u'France Bleu')
 
         elif split_path[0] == u'francebleu':
             if len(split_path) == 1:
-                for _id, item in sorted(self._RADIOS.iteritems()):
+                for _id, item in sorted(self._RADIOS.items()):
                     if _id.startswith('fb'):
                         yield Collection([_id], item['title'])
 
-- 
2.17.0




More information about the weboob mailing list