py3: remove unneeded string casts

This commit is contained in:
Mr. Outis
2019-12-31 19:43:15 -06:00
parent 35f4ee8a53
commit 326ba21ed0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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