E5Gui/E5SingleApplication.py

changeset 410
e5d1addeb90c
parent 96
9624a110667d
child 608
d8fea1e76975
diff -r 0ea528e80202 -r e5d1addeb90c E5Gui/E5SingleApplication.py
--- a/E5Gui/E5SingleApplication.py	Mon Jul 26 19:59:27 2010 +0200
+++ b/E5Gui/E5SingleApplication.py	Tue Jul 27 08:25:53 2010 +0200
@@ -118,7 +118,7 @@
                 if argsStr is None:
                     argsStr = arg
                 else:
-                    argsStr = "%s %s" % (argsStr, arg)
+                    argsStr = "{0} {1}".format(argsStr, arg)
                 continue
             
             ext = os.path.splitext(arg)[1]
@@ -141,7 +141,7 @@
         
         @param fname name of file to be opened (string)
         """
-        cmd = "%s%s\n" % (SAOpenFile, Utilities.normabspath(fname))
+        cmd = "{0}{1}\n".format(SAOpenFile, Utilities.normabspath(fname))
         self.sendCommand(cmd)
         
     def __openProject(self, pfname):
@@ -150,7 +150,7 @@
         
         @param pfname name of the projectfile to be opened (string)
         """
-        cmd = "%s%s\n" % (SAOpenProject, Utilities.normabspath(pfname))
+        cmd = "{0}{1}\n".format(SAOpenProject, Utilities.normabspath(pfname))
         self.sendCommand(cmd)
         
     def __sendArguments(self, argsStr):
@@ -159,5 +159,5 @@
         
         @param argsStr space delimited list of command args (string)
         """
-        cmd = "%s%s\n" % (SAArguments, argsStr)
+        cmd = "{0}{1}\n".format(SAArguments, argsStr)
         self.sendCommand(cmd)

eric ide

mercurial