Skip to content

Commit

Permalink
dvc: separate cache and remote classes (iterative#4245)
Browse files Browse the repository at this point in the history
Finalizes code part of iterative#4050
  • Loading branch information
efiop authored Jul 19, 2020
1 parent 9bdbe27 commit b77ce02
Show file tree
Hide file tree
Showing 22 changed files with 1,011 additions and 1,019 deletions.
8 changes: 4 additions & 4 deletions dvc/cache.py → dvc/cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def _make_remote_property(name):
"""

def getter(self):
from dvc.remote import get_cloud_tree
from dvc.remote.base import CloudCache
from ..tree import get_cloud_tree
from .base import CloudCache

remote = self.config.get(name)
if not remote:
Expand All @@ -52,8 +52,8 @@ class Cache:
CACHE_DIR = "cache"

def __init__(self, repo):
from dvc.remote import get_cloud_tree
from dvc.remote.local import LocalCache
from ..tree import get_cloud_tree
from .local import LocalCache

self.repo = repo
self.config = config = repo.config["cache"]
Expand Down
Loading

0 comments on commit b77ce02

Please sign in to comment.