--- 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