UI/Previewers/PreviewerHTML.py

branch
6_1_x
changeset 4972
fe8015457551
parent 4930
53c81938e911
child 5267
ede9faf7388a
--- a/UI/Previewers/PreviewerHTML.py	Fri May 06 16:35:40 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