From 1c6a28d7c691e0eaeefe4342f691e3f2120e8541 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Sat, 9 Oct 2021 14:54:50 +0200 Subject: [PATCH] repository --- repository.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/repository.py b/repository.py index 2021487..6950843 100644 --- a/repository.py +++ b/repository.py @@ -12,8 +12,9 @@ class Repository: .strftime('%Y%m%d%H%M%S')) def __str__(self): - return f'''\ -Directory: {self.directory} - → {os.path.realpath(self.directory)} -Temporary: {self.tmp} -''' + lines = [ + f'Directory: {self.directory}', + f' → {os.path.realpath(self.directory)}', + f'Temporary: {self.tmp}', + ] + return os.linesep.join(lines)