Fix Python 3 compatibility issue in V8EvalEvaluator
str.encode() is now not only unnecessary but it actually breaks the action by converting the input str to bytes. Since Python 2 support has been dropped, the call to encode() can simply be removed. Change-Id: I8f5ee8ae9542d9a15fb0937b4a9de1db9915a3a7
This commit is contained in:
parent
703261c6ae
commit
d0d865063b
|
@ -75,7 +75,7 @@ class V8EvalEvaluator(JSEvaluator):
|
|||
ctx_str = utils.to_json_str(ctx)
|
||||
|
||||
return v8.eval(
|
||||
('$ = %s; %s' % (ctx_str, script)).encode(encoding='UTF-8')
|
||||
'$ = %s; %s' % (ctx_str, script)
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue