From cd2db0b2671421693505fd04dacd12c05907ba0c Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Fri, 23 Oct 2015 18:13:15 -0700 Subject: [PATCH] enable po/check_po to work on older machines --- po/check_po | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/po/check_po b/po/check_po index 7f3d73b0a..6889f9703 100755 --- a/po/check_po +++ b/po/check_po @@ -294,7 +294,10 @@ class Msgid: ( self.nr, self.lineno, self.is_fuzzy and " (fuzzy)" or "" )) sys.stdout.write( ''.join( self._msgid ) ) sys.stdout.write( ''.join( self._msgidp ) ) - sys.stdout.write( ''.join( self._msgstr ) ) + if sys.version_info[0] < 3: + sys.stdout.write(''.join(self._msgstr).encode('utf-8')) + else: + sys.stdout.write( ''.join( self._msgstr ) ) def add_msgid( self, line, lineno ): self._msgid.append( line )