@@ -70,7 +70,7 @@ def createTasks():
70
70
tasks = []
71
71
last_id = None
72
72
taskcontrols = []
73
- for i in xrange (1 , 11 ):
73
+ for i in range (1 , 11 ):
74
74
tasks .append ('Task %i' % i )
75
75
prefix = "T%s" % str (i )
76
76
curTaskType = '%s.type' % prefix
@@ -105,7 +105,7 @@ def createTasks():
105
105
try :
106
106
option = varset ['option' ]
107
107
except KeyError :
108
- conditionals = struct .Conditional (struct .Conditional .OP_EQUAL , unicode (key ), curTaskType )
108
+ conditionals = struct .Conditional (struct .Conditional .OP_EQUAL , str (key ), curTaskType )
109
109
if varset ['type' ] == 'sfile' :
110
110
labelbrowse = u'%s - browse' % varset ['label' ]
111
111
labeledit = u'%s - edit' % varset ['label' ]
@@ -128,7 +128,7 @@ def createTasks():
128
128
default = varset ['default' ],
129
129
visible = conditionals ))
130
130
else :
131
- conditionals = struct .Conditional (struct .Conditional .OP_EQUAL , unicode (key ), curTaskType )
131
+ conditionals = struct .Conditional (struct .Conditional .OP_EQUAL , str (key ), curTaskType )
132
132
if varset ['type' ] == 'sfile' :
133
133
labelbrowse = '%s - browse' % varset ['label' ]
134
134
labeledit = '%s - edit' % varset ['label' ]
@@ -163,7 +163,7 @@ def createEvents(tasks):
163
163
eventcontrols = []
164
164
165
165
last_id = None
166
- for i in xrange (1 , 11 ):
166
+ for i in range (1 , 11 ):
167
167
prefix = 'E%s' % str (i )
168
168
curEvtType = '%s.type' % prefix
169
169
action_evt = 'RunScript(script.service.kodi.callbacks, lselector, id=%s.type, heading=%s, lvalues=%s)' % (
@@ -250,7 +250,7 @@ def createEvents(tasks):
250
250
lines .append (vs [x + 1 :])
251
251
for line in lines :
252
252
eventcontrols .append (struct .Lsep (label = line , visible = conditionals ))
253
- conditionals = struct .Conditional (struct .Conditional .OP_NOT_EQUAL , unicode (glsid ('None' )), curEvtType )
253
+ conditionals = struct .Conditional (struct .Conditional .OP_NOT_EQUAL , str (glsid ('None' )), curEvtType )
254
254
eventcontrols .append (
255
255
struct .Text ('%s.userargs' % prefix , 'Var subbed arg string' , default = '' , visible = conditionals ))
256
256
eventcontrols .append (struct .Action ('%s.test' % prefix , 'Test Command (click OK to save changes first)' ,
0 commit comments