UI/Previewers/PreviewerHTML.py

changeset 4975
c71c0afee067
parent 4929
fcab21c80811
child 5266
c2abca3b5e7b
diff -r 0f21662c0d2d -r c71c0afee067 UI/Previewers/PreviewerHTML.py
--- a/UI/Previewers/PreviewerHTML.py	Sat May 07 15:57:34 2016 +0200
+++ b/UI/Previewers/PreviewerHTML.py	Sun May 08 11:45:55 2016 +0200
@@ -10,8 +10,9 @@
 from __future__ import unicode_literals
 
 try:  # Only for Py2
+    basestring
     import StringIO as io   # __IGNORE_EXCEPTION__
-except ImportError:
+except (ImportError, NameError):
     import io       # __IGNORE_WARNING__
 
 import os

eric ide

mercurial