--- a/UI/SymbolsWidget.py Thu May 05 19:50:00 2016 +0200 +++ b/UI/SymbolsWidget.py Fri May 06 16:35:40 2016 +0200 @@ -9,16 +9,17 @@ from __future__ import unicode_literals -import sys -import unicodedata try: - # Py3 - import html.entities as html_entities -except (ImportError): # Py2 str = unicode # __IGNORE_WARNING__ chr = unichr # __IGNORE_WARNING__ import htmlentitydefs as html_entities # __IGNORE_WARNING__ +except NameError: + # Py3 + import html.entities as html_entities + +import sys +import unicodedata from PyQt5.QtCore import pyqtSlot, pyqtSignal, QAbstractTableModel, \ QModelIndex, Qt, qVersion, QItemSelectionModel, QLocale