allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [allura] 03/05: [#8333] avoid encoding issues in LastCommit.__repr__ by using the repr of the path
Date Tue, 17 Sep 2019 19:47:59 GMT
This is an automated email from the ASF dual-hosted git repository.

brondsem pushed a commit to branch db/8333
in repository https://gitbox.apache.org/repos/asf/allura.git

commit b3f397e72345e8297eb2206de1f36e3d7bc863a0
Author: Dave Brondsema <dave@brondsema.net>
AuthorDate: Tue Sep 17 14:52:01 2019 -0400

    [#8333] avoid encoding issues in LastCommit.__repr__ by using the repr of the path
---
 Allura/allura/model/repository.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Allura/allura/model/repository.py b/Allura/allura/model/repository.py
index 96bbfc4..7ed46f1 100644
--- a/Allura/allura/model/repository.py
+++ b/Allura/allura/model/repository.py
@@ -1587,7 +1587,7 @@ class Blob(object):
 class LastCommit(RepoObject):
 
     def __repr__(self):
-        return '<LastCommit /%s %s>' % (self.path, self.commit_id)
+        return '<LastCommit /%r %s>' % (self.path, self.commit_id)
 
     @classmethod
     def _last_commit_id(cls, commit, path):


Mime
View raw message