Plugins/PluginEricapi.py

changeset 416
9ca4a5979826
parent 398
5b5636320dca
child 453
a81097a85889
--- a/Plugins/PluginEricapi.py	Tue Jul 27 12:49:37 2010 +0200
+++ b/Plugins/PluginEricapi.py	Tue Jul 27 12:58:35 2010 +0200
@@ -155,7 +155,7 @@
             
             # add parameter for the eol setting
             if not project.useSystemEol():
-                args.append("--eol=%s" % eolTranslation[project.getEolString()])
+                args.append("--eol={0}".format(eolTranslation[project.getEolString()]))
             
             # now do the call
             dia = EricapiExecDialog("Ericapi")
@@ -174,10 +174,10 @@
                         outfile = outputFileName
                     else:
                         root, ext = os.path.splitext(outputFileName)
-                        outfile = "%s-%s%s" % (root, progLanguage.lower(), ext)
+                        outfile = "{0}-{1}{2}".format(root, progLanguage.lower(), ext)
                 
                 outfile = project.getRelativePath(outfile)
                 if outfile not in project.pdata['OTHERS']:
                     project.pdata['OTHERS'].append(outfile)
                     project.setDirty(True)
-                    project.othersAdded(outfile)
\ No newline at end of file
+                    project.othersAdded(outfile)

eric ide

mercurial