Commit ad30c470 authored by Jérome Perrin's avatar Jérome Perrin

administration: fix BT's "Check Python Code" with coding flag

backport nexedi/erp5!825/ for test
failure at
https://lab.nexedi.com/nexedi/capago/merge_requests/360/diffs#note_73137

/reviewed-on https://lab.nexedi.com/nexedi/erp5-capago/merge_requests/34
parents 082aa95e 231b341b
......@@ -33,7 +33,7 @@ def checkPythonScript(script_instance, script_path):
{'bound_names': extra_builtins +
script_instance.getBindingAssignments().getAssignedNamesInOrder(),
'params': script_instance.params(),
'code': unicode(script_instance.read(), 'utf8')
'code': unicode(script_instance.body(), 'utf8')
}))['annotations']:
annotation["script_path"] = script_path
line_list.append(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment