eric6/QScintilla/Exporters/ExporterHTML.py

branch
without_py2_and_pyqt4
changeset 7192
a22eee00b052
parent 6942
2602857055c5
child 7229
53054eb5b15a
diff -r 960850ec284c -r a22eee00b052 eric6/QScintilla/Exporters/ExporterHTML.py
--- a/eric6/QScintilla/Exporters/ExporterHTML.py	Sat Aug 31 12:29:57 2019 +0200
+++ b/eric6/QScintilla/Exporters/ExporterHTML.py	Sat Aug 31 12:58:11 2019 +0200
@@ -9,16 +9,12 @@
 
 from __future__ import unicode_literals
 
-try:  # Only for Py2
-    import StringIO as io   # __IGNORE_EXCEPTION__
-except (ImportError, NameError):
-    import io       # __IGNORE_WARNING__
-
 # This code is a port of the C++ code found in SciTE 1.74
 # Original code: Copyright 1998-2006 by Neil Hodgson <neilh@scintilla.org>
 
 import os
 import sys
+import io
 
 from PyQt5.QtCore import Qt
 from PyQt5.QtGui import QCursor, QFontInfo

eric ide

mercurial