eric6.py

changeset 5838
4c2cace2263a
parent 5699
0e40b560dcd1
child 6048
82ad8ec9548c
--- a/eric6.py	Mon Aug 07 18:00:51 2017 +0200
+++ b/eric6.py	Tue Aug 08 10:53:10 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