From 531195c518c22e5b4656b4570a7bb2e32c5b9945 Mon Sep 17 00:00:00 2001 From: Gennady Kovshenin Date: Mon, 27 Aug 2012 03:28:38 +0600 Subject: [PATCH] Print out the author object correctly The author object (of class Person) lacked the magic `__str__` method to be eligible for pretty printing in `show` commands added the `__str__` to return the same as the `__unicode__` method --- git-issues | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-issues b/git-issues index 4cbcde8..513f95b 100755 --- a/git-issues +++ b/git-issues @@ -85,6 +85,9 @@ class Person: def __unicode__(self): return u"%s <%s>" % (self.name, self.email) + def __str__(self): + return unicode(self) + class Comment: def __init__(self, issue, author, comment):