Mercurial > libervia-desktop-kivy
diff cagou/core/widgets_handler.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 | efd3fbc85aaf |
children | 19422bbd9c8e |
line wrap: on
line diff
--- a/cagou/core/widgets_handler.py Mon Aug 05 11:21:54 2019 +0200 +++ b/cagou/core/widgets_handler.py Tue Aug 13 19:14:22 2019 +0200 @@ -357,9 +357,9 @@ @return: a value which will be used for sorting """ try: - return unicode(widget.target).lower() + return str(widget.target).lower() except AttributeError: - return unicode(list(widget.targets)[0]).lower() + return str(list(widget.targets)[0]).lower() def updateHiddenSlides(self): """adjust carousel slides according to visible widgets"""