--- a/eric6/UI/SymbolsWidget.py Sat Aug 31 12:29:57 2019 +0200 +++ b/eric6/UI/SymbolsWidget.py Sat Aug 31 12:58:11 2019 +0200 @@ -9,17 +9,9 @@ from __future__ import unicode_literals -try: - # Py2 - str = unicode - chr = unichr - import htmlentitydefs as html_entities -except (NameError, ImportError): - # Py3 - import html.entities as html_entities - import sys import unicodedata +import html.entities from PyQt5.QtCore import pyqtSlot, pyqtSignal, QAbstractTableModel, \ QModelIndex, Qt, QItemSelectionModel, QLocale @@ -372,9 +364,9 @@ elif col == 2: return "0x{0:04x}".format(symbolId) elif col == 3: - if symbolId in html_entities.codepoint2name: + if symbolId in html.entities.codepoint2name: return "&{0};".format( - html_entities.codepoint2name[symbolId]) + html.entities.codepoint2name[symbolId]) elif col == 4: return unicodedata.name(chr(symbolId), '').title()