diff options
author | Mart Raudsepp <leio@gentoo.org> | 2016-09-07 23:17:51 +0300 |
---|---|---|
committer | Mart Raudsepp <leio@gentoo.org> | 2016-09-07 23:17:51 +0300 |
commit | 724bb757e8b08382dcbdd460cbef533b91e6338f (patch) | |
tree | 1bd55272dd71f40ac2d70fb74f1ebd4ca654d06b /backend/lib | |
parent | Add initial code to sync categories from packages.g.o with associated plumbing (diff) | |
download | grumpy-724bb757e8b08382dcbdd460cbef533b91e6338f.tar.gz grumpy-724bb757e8b08382dcbdd460cbef533b91e6338f.tar.bz2 grumpy-724bb757e8b08382dcbdd460cbef533b91e6338f.zip |
Don't double-quote debug output for full atoms from %r usage
Diffstat (limited to 'backend/lib')
-rw-r--r-- | backend/lib/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/lib/models.py b/backend/lib/models.py index 5088e3e..8e47d56 100644 --- a/backend/lib/models.py +++ b/backend/lib/models.py @@ -16,7 +16,7 @@ class Package(db.Model): category = db.relationship('Category', backref=db.backref('packages', lazy='dynamic')) def __repr__(self): - return "<Package %r/%r>" % (self.category.name, self.name) + return "<Package '%s/%s'>" % (self.category.name, self.name) class PackageVersion(db.Model): id = db.Column(db.Integer, primary_key=True) @@ -25,4 +25,4 @@ class PackageVersion(db.Model): package = db.relationship('Package', backref=db.backref('versions', lazy='dynamic')) def __repr__(self): - return "<PackageVersion %s/%r-%r>" % (self.package.category.name, self.package.name, self.version) + return "<PackageVersion '%s/%s-%s'>" % (self.package.category.name, self.package.name, self.version) |