eric6.py

branch
maintenance
changeset 5863
0752bdd8db77
parent 5838
4c2cace2263a
child 6048
82ad8ec9548c
diff -r ea0f0f066b1d -r 0752bdd8db77 eric6.py
--- a/eric6.py	Thu Aug 03 14:50:59 2017 +0200
+++ b/eric6.py	Fri Sep 01 12:08:17 2017 +0200
@@ -144,7 +144,6 @@
     @param excValue exception value
     @param tracebackobj traceback object
     """
-    import xml.sax.saxutils
     from UI.Info import BugAddress
     import Utilities
     import Globals
@@ -197,7 +196,10 @@
     else:
         warning = notice + msg + versionInfo
         # Escape &<> otherwise it's not visible in the error dialog
-        warning = xml.sax.saxutils.escape(warning)
+        warning = warning\
+            .replace("&", "&amp;")\
+            .replace(">", "&gt;")\
+            .replace("<", "&lt;")
         if sys.version_info[0] == 2:
             warning = warning.encode('utf-8', 'replace')
         qWarning(warning)

eric ide

mercurial