eric6/UI/Previewers/PreviewerHTML.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7196
ab0a91b82b37
diff -r 960850ec284c -r a22eee00b052 eric6/UI/Previewers/PreviewerHTML.py
--- a/eric6/UI/Previewers/PreviewerHTML.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/UI/Previewers/PreviewerHTML.py	Sat Aug 31 12:58:11 2019 +0200
@@ -9,18 +9,13 @@
 
 from __future__ import unicode_literals
 
-try:  # Only for Py2
-    import StringIO as io   # __IGNORE_EXCEPTION__
-    str = unicode
-except (ImportError, NameError):
-    import io       # __IGNORE_WARNING__
-
 import os
 import threading
 import re
 import shutil
 import tempfile
 import sys
+import io
 
 from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt, QUrl, QSize, QThread
 from PyQt5.QtGui import QCursor

eric ide

mercurial