[ConfigList.py] fix Py3 crash, TypeError: object of type 'zip' has no… #1943
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
… len()
[ActionMap] Keymap 'SetupActions' -> Action = 'file'.
Traceback (most recent call last):
File "/usr/lib/enigma2/python/Components/ActionMap.py", line 79, in action
return ActionMap.action(self, contexts, action)
File "/usr/lib/enigma2/python/Components/ActionMap.py", line 59, in action
res = self.actionsaction
File "/usr/lib/enigma2/python/Components/ConfigList.py", line 290, in keyFile
self.session.openWithCallback(self.handleKeyFileCallback, ChoiceBox, selection[0],
File "/usr/lib/enigma2/python/mytest.py", line 350, in openWithCallback
dlg = self.open(screen, *arguments, **kwargs)
File "/usr/lib/enigma2/python/mytest.py", line 369, in open
dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
File "/usr/lib/enigma2/python/mytest.py", line 298, in instantiateDialog
return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
File "/usr/lib/enigma2/python/mytest.py", line 320, in doInstantiateDialog
dlg = screen(self, *arguments, **kwargs)
File "/usr/lib/enigma2/python/Screens/ChoiceBox.py", line 79, in init
self.__keys = keys + (len(list) - len(keys)) * [""]
TypeError: object of type 'zip' has no len()
[ePyObject] (PyObject_CallObject(<bound method NumberActionMap.action of <Components.ActionMap.NumberActionMap object at 0xad6e5d00>>,('SetupActions', 'file')) failed)