This commit is contained in:
Marc Beninca 2021-10-09 14:55:05 +02:00 committed by Marc Beninca
parent 1c6a28d7c6
commit e10e33ace2

View file

@ -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)