diff --git a/dvc/cache.py b/dvc/cache.py index cfdc6113c..e7e1d6fdc 100644 --- a/dvc/cache.py +++ b/dvc/cache.py @@ -53,7 +53,7 @@ def _make_remote_property(name): return Remote(self.repo, name=remote) - getter.__name__ = str(name) + getter.__name__ = name return cached_property(getter) diff --git a/dvc/path_info.py b/dvc/path_info.py index 0e2245cf2..dc64bc7a1 100644 --- a/dvc/path_info.py +++ b/dvc/path_info.py @@ -51,7 +51,7 @@ class PathInfo(pathlib.PurePath, _BasePath): return relpath(path) def __repr__(self): - return str("{}: '{}'").format(type(self).__name__, self) + return "{}: '{}'".format(type(self).__name__, self) # This permits passing it to file utils directly in Python 3.6+ # With Python 2.7, Python 3.5+ we are stuck with path_info.fspath for now