1
0
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:
Jelle van der Waa 2014-12-10 09:51:50 +01:00
parent 7ca0b2d04e
commit 0495439093

View File

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