Change to Python3 coding style

This commit is contained in:
shortcutme 2019-03-15 21:06:59 +01:00
parent fc0fe0557b
commit b0b9a4d33c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
137 changed files with 910 additions and 913 deletions

View file

@ -1,7 +1,8 @@
import io
from Plugin import PluginManager
from Config import config
from Translate import Translate
from cStringIO import StringIO
if "_" not in locals():
@ -47,7 +48,7 @@ class UiRequestPlugin(object):
else:
data = open(file_path).read()
return self.actionFile(file_path, file_obj=StringIO(data), file_size=len(data))
return self.actionFile(file_path, file_obj=io.BytesIO(data), file_size=len(data))
else:
return super(UiRequestPlugin, self).actionUiMedia(path)
@ -58,7 +59,7 @@ class UiWebsocketPlugin(object):
back = {}
config_values = vars(config.arguments)
config_values.update(config.pending_changes)
for key, val in config_values.iteritems():
for key, val in config_values.items():
if key not in config.keys_api_change_allowed:
continue
is_pending = key in config.pending_changes

View file

@ -1 +1 @@
import UiConfigPlugin
from . import UiConfigPlugin