Fix parsing pipeline component arguments with comma slices in python 3.9

This commit is contained in:
Alex Burlacu 2023-03-22 15:15:21 +02:00
parent 6fb98d9e8c
commit 09a4d85c0c

View File

@ -753,7 +753,11 @@ if __name__ == '__main__':
# type: (str) -> str
try:
import ast
from ...utilities.lowlevel.astor_unparse import unparse
try:
# available in Python3.9+
from ast import unparse
except ImportError:
from ...utilities.lowlevel.astor_unparse import unparse
except ImportError:
return function_source