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

fixup! fixup! data_notebook: py3

parent 542d12c4
Pipeline #33930 failed with stage
in 0 seconds
......@@ -918,7 +918,7 @@ class ImportFixer(ast.NodeTransformer):
empty_function = self.newEmptyFunction("%s_setup" %dotless_result_name)
return_dict = self.newReturnDict(final_module_names)
if star_import_used:
if six.PY3 and star_import_used:
# since we are generating a function on the fly, we can not generate something
# like this, because star import are only allowed at module level:
# def f():
......
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