diff cagou/core/common.py @ 312:772c170b47a9

Python3 port: /!\ Cagou now runs with Python 3.6+ Port has been done in the same way as for backend (check backend commit b2d067339de3 message for details).
author Goffi <goffi@goffi.org>
date Tue, 13 Aug 2019 19:14:22 +0200
parents 1b835bcfa663
children e2b51663d8b8
line wrap: on
line diff
--- a/cagou/core/common.py	Mon Aug 05 11:21:54 2019 +0200
+++ b/cagou/core/common.py	Tue Aug 13 19:14:22 2019 +0200
@@ -33,7 +33,7 @@
 
 log = logging.getLogger(__name__)
 
-UNKNOWN_SYMBOL = u'Unknown symbol name'
+UNKNOWN_SYMBOL = 'Unknown symbol name'
 
 
 class IconButton(ButtonBehavior, Image):
@@ -96,9 +96,9 @@
         try:
             code = self.symbol_map[symbol]
         except KeyError:
-            log.warning(_(u"Invalid symbol {symbol}").format(symbol=symbol))
+            log.warning(_("Invalid symbol {symbol}").format(symbol=symbol))
         else:
-            self.text = unichr(code)
+            self.text = chr(code)
 
 
 class SymbolButton(ButtonBehavior, Symbol):