From 7180f49df3e405d5bb78e7479d04a108b232d0ad Mon Sep 17 00:00:00 2001 From: Alexander Schepanovski Date: Thu, 4 Jul 2019 22:43:24 +0700 Subject: [PATCH] remote: fix UrlInfo.relative_to() --- dvc/path_info.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dvc/path_info.py b/dvc/path_info.py index 2d140f885..777944d96 100644 --- a/dvc/path_info.py +++ b/dvc/path_info.py @@ -194,11 +194,10 @@ class URLInfo(object): def relative_to(self, other): if isinstance(other, str): - other_str = other other = URLInfo(other) if self.scheme != other.scheme or self.netloc != other.netloc: raise ValueError( - "'{}' does not start with '{}'".format(self, other_str) + "'{}' does not start with '{}'".format(self, other) ) return self._path.relative_to(other._path)