mirror of
https://github.com/clearml/clearml
synced 2025-01-31 09:07:00 +00:00
Fix PY2 compatibility issue
This commit is contained in:
parent
889d237398
commit
51d70efbff
@ -1,4 +1,5 @@
|
||||
""" ClearML open SDK """
|
||||
from six import PY2
|
||||
|
||||
from .version import __version__
|
||||
from .task import Task
|
||||
@ -7,7 +8,31 @@ from .logger import Logger
|
||||
from .storage import StorageManager
|
||||
from .errors import UsageError
|
||||
from .datasets import Dataset
|
||||
from .automation.controller import PipelineController
|
||||
|
||||
__all__ = ["__version__", "Task", "InputModel", "OutputModel", "Model", "Logger",
|
||||
"StorageManager", "UsageError", "Dataset", "PipelineController"]
|
||||
if not PY2:
|
||||
from .automation.controller import PipelineController
|
||||
|
||||
__all__ = [
|
||||
"__version__",
|
||||
"Task",
|
||||
"InputModel",
|
||||
"OutputModel",
|
||||
"Model",
|
||||
"Logger",
|
||||
"StorageManager",
|
||||
"UsageError",
|
||||
"Dataset",
|
||||
"PipelineController",
|
||||
]
|
||||
else:
|
||||
__all__ = [
|
||||
"__version__",
|
||||
"Task",
|
||||
"InputModel",
|
||||
"OutputModel",
|
||||
"Model",
|
||||
"Logger",
|
||||
"StorageManager",
|
||||
"UsageError",
|
||||
"Dataset",
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user