location,str

This commit is contained in:
Marc Beninca 2021-10-10 15:01:24 +02:00 committed by Marc Beninca
parent 3707f42b77
commit 9cd6155f8c
4 changed files with 21 additions and 11 deletions

View file

@ -1,3 +1,12 @@
import os
class Repository:
def __init__(self):
pass
def __init__(self, location):
self.location = location
def __str__(self):
lines = [
f'Location: {self.location}',
]
return os.linesep.join(lines)