Code Style Checker: removed an obsolete PyQt4 compatibility code.

Sat, 03 Oct 2020 18:10:49 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 03 Oct 2020 18:10:49 +0200
changeset 7747
4f0b034f4c34
parent 7746
12d5e1e6abd1
child 7748
23e98236a4c4

Code Style Checker: removed an obsolete PyQt4 compatibility code.

eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py file | annotate | diff | comparison | revisions
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Sat Oct 03 17:25:26 2020 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/translations.py	Sat Oct 03 18:10:49 2020 +0200
@@ -10,8 +10,6 @@
 
 from PyQt5.QtCore import QCoreApplication
 
-from Globals import translate
-
 from .Security.translations import (
     _securityMessages, _securityMessagesSampleArgs
 )
@@ -949,10 +947,10 @@
         'CodeStyleFixer',
         "Whitespace around comment sign corrected."),
     
-    "FIXE302+": lambda n=1: translate(
+    "FIXE302+": lambda n=1: QCoreApplication.translate(
         'CodeStyleFixer',
         "%n blank line(s) inserted.", '', n),
-    "FIXE302-": lambda n=1: translate(
+    "FIXE302-": lambda n=1: QCoreApplication.translate(
         'CodeStyleFixer',
         "%n superfluous lines removed", '', n),
     

eric ide

mercurial