--- a/eric6/Globals/__init__.py Sat Oct 03 15:24:48 2020 +0200 +++ b/eric6/Globals/__init__.py Sat Oct 03 16:52:11 2020 +0200 @@ -18,8 +18,7 @@ import shutil from PyQt5.QtCore import ( - QDir, QByteArray, QCoreApplication, QT_VERSION_STR, QT_VERSION, QProcess, - qVersion + QDir, QByteArray, QCoreApplication, QT_VERSION, QProcess, qVersion ) # names of the various settings objects @@ -316,21 +315,6 @@ return QDir.toNativeSeparators(path) -# TODO: get rid of this -def translate(*args): - """ - Module function to handle different PyQt 4/5 QCoreApplication.translate - parameter. - - @param args tuple of arguments from QCoreApplication.translate (tuple) - @return translated string (string) - """ - if QT_VERSION_STR.startswith('4.'): - args = list(args) - args.insert(3, QCoreApplication.CodecForTr) - return QCoreApplication.translate(*args) - - ############################################################################### ## functions for version handling ###############################################################################