Change to Python3 coding style
This commit is contained in:
parent
fc0fe0557b
commit
b0b9a4d33c
137 changed files with 910 additions and 913 deletions
|
@ -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
|
||||
|
|
|
@ -1 +1 @@
|
|||
import UiConfigPlugin
|
||||
from . import UiConfigPlugin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue