# HG changeset patch # User Oleksandr Gavenko # Date 1474991709 -10800 # Node ID 92a189ed49b651402882e4088c04f24a1204cde4 # Parent 8497d1849d570135aeacce4120c4c635a59c570c Fix: TypeError: non-empty format string passed to object.__format__. diff -r 8497d1849d57 -r 92a189ed49b6 py/gadict.py --- a/py/gadict.py Tue Sep 27 10:16:57 2016 +0300 +++ b/py/gadict.py Tue Sep 27 18:55:09 2016 +0300 @@ -27,9 +27,9 @@ if self.lineno is None: return self.msg elif self.line is None: - return ":{:d}:{:s}".format(self.lineno, self.msg.encode('utf-8')) + return u":{:d}:{:s}".format(self.lineno, self.msg) else: - return ":{:d}: {:s}\nLINE: {:s}".format(self.lineno, self.msg.encode('utf-8'), self.line.encode('utf-8')) + return u":{:d}: {:s}\nLINE: {:s}".format(self.lineno, self.msg, self.line) class Headword: