diff --git a/remote.py b/remote.py index c6740b9..ccb8fbb 100644 --- a/remote.py +++ b/remote.py @@ -32,8 +32,8 @@ class Remote: self.archives = d def __str__(self): - return f'''\ -Location: {self.location} -Archives: -{self.archives} -''' + lines = [f'Location: {self.location}', + 'Archives:'] + for architecture, archive in sorted(self.archives.items()): + lines.append(f'{architecture} → {archive}') + return os.linesep.join(lines)