Fixed some incorrect string format strings using the new checker.

Thu, 29 Oct 2015 19:10:20 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 29 Oct 2015 19:10:20 +0100
changeset 4512
23e8b848efb0
parent 4511
b5e4e7efa904
child 4514
e410e76d6538

Fixed some incorrect string format strings using the new checker.

Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py file | annotate | diff | comparison | revisions
install.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Thu Oct 29 19:06:49 2015 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Thu Oct 29 19:10:20 2015 +0100
@@ -2120,13 +2120,13 @@
                 if mode == "heads":
                     info.append(QCoreApplication.translate(
                         "mercurial",
-                        """<tr><td><b>Head #{0}</b></td><td></td></tr>\n"""
-                        .format(index, changeset)))
+                        """<tr><td><b>Head #{0}</b></td><td></td></tr>\n""")
+                        .format(index))
                 elif mode == "parents":
                     info.append(QCoreApplication.translate(
                         "mercurial",
-                        """<tr><td><b>Parent #{0}</b></td><td></td></tr>\n"""
-                        .format(index, changeset)))
+                        """<tr><td><b>Parent #{0}</b></td><td></td></tr>\n""")
+                        .format(index))
                 elif mode == "tip":
                     info.append(QCoreApplication.translate(
                         "mercurial",
--- a/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py	Thu Oct 29 19:06:49 2015 +0100
+++ b/Plugins/WizardPlugins/E5MessageBoxWizard/E5MessageBoxWizardDialog.py	Thu Oct 29 19:10:20 2015 +0100
@@ -427,8 +427,7 @@
             btnCode = ',{0}{1}E5MessageBox.StandardButtons('.format(
                 os.linesep, istring)
         else:
-            btnCode = 'E5MessageBox.StandardButtons('.format(
-                os.linesep, istring)
+            btnCode = 'E5MessageBox.StandardButtons('
         btnCode += '{0}{1}{2})'.format(
             os.linesep, istring2, joinstring.join(buttons))
         
--- a/install.py	Thu Oct 29 19:06:49 2015 +0100
+++ b/install.py	Thu Oct 29 19:10:20 2015 +0100
@@ -738,7 +738,7 @@
         try:
             shutilCopy(name, cfg['ericDocDir'])
         except EnvironmentError:
-            print("Could not install '{1}'.".format(name))
+            print("Could not install '{0}'.".format(name))
    
     # copy some more stuff
     for name in ['default.e4k', 'default_Mac.e4k']:

eric ide

mercurial