Redid the SymbolsWidget fix.

Fri, 06 May 2016 16:35:40 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 06 May 2016 16:35:40 +0200
changeset 4970
dcbb14191a3b
parent 4968
afcc223b932f
child 4971
0f21662c0d2d

Redid the SymbolsWidget fix.
(grafted from 2e3bf59087ecc4c3d57e23b30584a0d180f41b21)

UI/SymbolsWidget.py file | annotate | diff | comparison | revisions
diff -r afcc223b932f -r dcbb14191a3b UI/SymbolsWidget.py
--- 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

eric ide

mercurial