From 326ba21ed0a6a35b23f3f664832c39d86555fb2f Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Tue, 31 Dec 2019 19:43:15 -0600 Subject: [PATCH] py3: remove unneeded string casts --- dvc/cache.py | 2 +- dvc/path_info.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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