Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions metaflow/client/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,7 @@
if TYPE_CHECKING:
from metaflow.metadata_provider import MetadataProvider

try:
# python2
import cPickle as pickle
except: # noqa E722
# python3
import pickle
import pickle

# populated at the bottom of this file
_CLASSES = {}
Expand Down Expand Up @@ -285,7 +280,7 @@ def __init__(
# the namespace at the import time is problematic, since there
# may be other modules that alter environment variables etc.
# which may affect the namespace setting.
self._metaflow = Metaflow(_current_metadata) or _metaflow
self._metaflow = _metaflow or Metaflow(_current_metadata)
self._parent = _parent
self._path_components = None
self._attempt = attempt
Expand Down