Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py

changeset 425
ca5e65413fc5
parent 248
f4561c24989a
child 464
a2b1d1770ef0
--- a/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py	Wed Jul 28 09:10:19 2010 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnDiffDialog.py	Wed Jul 28 15:12:20 2010 +0200
@@ -123,7 +123,7 @@
             if rev1 is not None or rev2 is not None:
                 args.append('-r')
                 if rev1 is not None and rev2 is not None:
-                    args.append('%s:%s' % (rev1, rev2))
+                    args.append('{0}:{1}'.format(rev1, rev2))
                 elif rev2 is None:
                     args.append(rev1)
                 elif rev1 is None:
@@ -134,8 +134,8 @@
             if summary:
                 args.append("--summarize")
                 self.summaryPath = urls[0]
-            args.append("--old=%s" % urls[0])
-            args.append("--new=%s" % urls[1])
+            args.append("--old={0}".format(urls[0]))
+            args.append("--new={0}".format(urls[1]))
             if isinstance(fn, list):
                 dname, fnames = self.vcs.splitPathList(fn)
             else:
@@ -269,7 +269,7 @@
             else:
                 dname, fname = self.vcs.splitPath(self.filename[0])
                 if fname != '.':
-                    fname = "%s.diff" % self.filename[0]
+                    fname = "{0}.diff".format(self.filename[0])
                 else:
                     fname = dname
         else:
@@ -362,4 +362,4 @@
             self.intercept = False
             evt.accept()
             return
-        QWidget.keyPressEvent(self, evt)
\ No newline at end of file
+        QWidget.keyPressEvent(self, evt)

eric ide

mercurial