From aaba2ec34761ea300dfec21fb7de4d7ca7a6898f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Sun, 7 Jun 2015 19:47:29 +0200 Subject: [PATCH] Remove some unicode stuff for python3 --- po/check_po | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/po/check_po b/po/check_po index 4f9917133..52933ce60 100755 --- a/po/check_po +++ b/po/check_po @@ -216,17 +216,17 @@ class Check_last_char( Check ): def __process( self, msg, msgid, msgstr ): msgid_last = msgid[-1:] - msgstr_last = unicode(msgstr, encoding='utf-8')[-1:] + msgstr_last = msgstr[-1:] if msgid_last.isspace() != msgstr_last.isspace(): self.msgs.append( msg ) elif (msgid_last == '.') != (msgstr_last == '.' or - msgstr_last == u'\u3002' ): # Chinese + msgstr_last == '\u3002' ): # Chinese self.msgs.append( msg ) elif (msgid_last == ':') != (msgstr_last == ':' or - msgstr_last == u'\uff1a' ): # Chinese + msgstr_last == '\uff1a' ): # Chinese self.msgs.append( msg ) elif (msgid_last == ')') != (msgstr_last == ')' or - msgstr_last == u'\uff09' ): # Chinese + msgstr_last == '\uff09' ): # Chinese self.msgs.append( msg )