- changed status to resolved
Port IceTV to OpenViX
Issue #769
resolved
Make the code Python 2/3 compatible & adjust to differences in the system environment.
Comments (2)
-
reporter -
reporter Merged in Fix-issue-769 (pull request #683)
Fix issue
#769: [IceTV] Port IceTV to OpenViX→ <<cset f1b8d2249f62>>
- Log in to comment
Fix issue
#769: [IceTV] Port IceTV to OpenViX[init,API,plugin]
Import print_function, division from future and import six where necessary to support Py2/3 compatibility.
Convert print statements to print functions, including where the print is commented out.
[init]
Make cache clearing portable between images in enableIceTV() and disableIceTV().
[API]
Make MAC address extraction in getMacAddress() Py2/3 portable.
Bump version number.
[plugin]
Make text extraction from JSON Py2/3 compatible.
Use // instead of / where integer result from division is needed.
Use open() instead of file() to open files for Py2/3 compatibility.
Use six.iteritems() & six.iterkeys() to portably iterate through dicts and to efficiently construct lists() from iterators.
Use int() instead of long(). In the contexts where this is needed, a Py2 int is large enough.
Call self.setTitle() later in EPGFetcher.init(); it was called to early to work in OpenViX.
In the IceTVNewUserSetup & IceTVNeedPassword keyboard() methods, allow the KeyText() method to be either called as that or as keyText(), depending on which is supported.
→ <<cset edfafb171e47>>