From c410f4c115998876ad5e56214894998b5f829da3 Mon Sep 17 00:00:00 2001 From: Eric Torres Date: Tue, 16 Apr 2019 21:45:45 -0700 Subject: [PATCH] Implement __str__ --- rbackup/struct/hierarchy.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rbackup/struct/hierarchy.py b/rbackup/struct/hierarchy.py index 5e4a33e..2d87264 100644 --- a/rbackup/struct/hierarchy.py +++ b/rbackup/struct/hierarchy.py @@ -49,6 +49,10 @@ class Hierarchy(PathLike): """Return a string representation of this Hierarchy.""" return f"{self.__class__.__name__}('{self._path}')" + def __str__(self): + """Return a string representation of this Hierarchy.""" + return str(self._path) + @property def path(self): """