mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
Add __repr__ for Repo class
This commit is contained in:
parent
7ca0b2d04e
commit
0495439093
@ -5176,6 +5176,9 @@ class Repo:
|
||||
def __str__(self):
|
||||
return self.repo_line_templ % (self.name, self.arch)
|
||||
|
||||
def __repr__(self):
|
||||
return 'Repo(%s %s)' % (self.name, self.arch)
|
||||
|
||||
@staticmethod
|
||||
def fromfile(filename):
|
||||
if not os.path.exists(filename):
|
||||
|
Loading…
Reference in New Issue
Block a user