Commit 7ce567ef authored by Jérome Perrin's avatar Jérome Perrin

ui_test_core: pylint on py3

parent 8a6bde44
......@@ -8,12 +8,9 @@ assert context.getPortalType() == "Test Tool", "bad context"
if test_id is None or test_id == '':
test_id = ''.join(
list(
filter( # pylint:disable=deprecated-lambda
lambda a: a not in [
"'", '_', '-', '.', ' ', '~', ':', '/', '?', '#', '[', ']', '@', '!',
'$', '&', '(', ')', '*', '+', ';', '='
], title)))
[a for a in title if a not in
("'", '_', '-', '.', ' ', '~', ':', '/', '?', '#', '[', ']', '@', '!',
'$', '&', '(', ')', '*', '+', ';', '=')])
if test_id not in context.objectIds():
factory = context.manage_addProduct['PageTemplates']
......
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