mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Fix PY2 compatibility
This commit is contained in:
parent
bd110aed5e
commit
799e7f629f
@ -1,6 +1,16 @@
|
||||
import re
|
||||
import typing
|
||||
from collections import UserDict, OrderedDict, UserList
|
||||
from collections import OrderedDict
|
||||
|
||||
try:
|
||||
from collections import UserList
|
||||
except ImportError:
|
||||
UserList = list
|
||||
|
||||
try:
|
||||
from collections import UserDict
|
||||
except ImportError:
|
||||
UserDict = dict
|
||||
|
||||
from clearml.backend_api import Session
|
||||
from clearml.backend_api.services import models
|
||||
|
Loading…
Reference in New Issue
Block a user