Not really closed source:
root@pulse4k:/usr/lib/enigma2/python/Plugins/Extensions/QtHbbtv# ls
__init__.py __init__.pyc browser.py datasocket.py hbbtv.py plugin.py
So I use 2to3
2to3 -w plugin.py
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Refactored plugin.py
--- plugin.py (original)
+++ plugin.py (refactored)
@@ -24,9 +24,9 @@
from Tools.Directories import fileExists, copyfile, pathExists, createDir
from Components.ServicePosition import ServicePosition
from Components.VolumeControl import VolumeControl
-import urllib
-import urllib2
-from hbbtv import HbbTVWindow
+import urllib.request, urllib.parse, urllib.error
+import urllib.request, urllib.error, urllib.parse
+from .hbbtv import HbbTVWindow
@@ -58,8 +58,8 @@
onid = info and info.getInfo(iServiceInformation.sONID) or -1
ssid = info and info.getInfo(iServiceInformation.sSID) or -1
- print 'URL %s' % (startUrl)
- print 'PMT %d TSID %d ONID %d SSID %d' % (pmt, tsid, onid, ssid)
+ print('URL %s' % (startUrl))
+ print('PMT %d TSID %d ONID %d SSID %d' % (pmt, tsid, onid, ssid))
ait = info.getAITApplications()
RefactoringTool: Files that were modified:
RefactoringTool: plugin.py
But then i have no module name browser
Edited by Pr2, 26 February 2022 - 18:07.
NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.
Wanna help with OpenPLi Translation? Please read our Wiki Information for translators
Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)
AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2