mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix parsing pipeline component arguments with comma slices in python 3.9
This commit is contained in:
parent
6fb98d9e8c
commit
09a4d85c0c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user