eric7/UI/DiffDialog.py

branch
eric7
changeset 9153
506e35e424d5
parent 9152
8a68afaf1ba2
--- a/eric7/UI/DiffDialog.py	Thu Jun 16 18:28:59 2022 +0200
+++ b/eric7/UI/DiffDialog.py	Fri Jun 17 16:36:14 2022 +0200
@@ -125,7 +125,7 @@
                 self,
                 self.tr("Save Diff"),
                 self.tr("<p>The patch file <b>{0}</b> already exists."
-                        " Overwrite it?</p>").format(str(fpath)),
+                        " Overwrite it?</p>").format(fpath),
                 icon=EricMessageBox.Warning)
             if not res:
                 return
@@ -140,7 +140,7 @@
                 self, self.tr('Save Diff'),
                 self.tr(
                     '<p>The patch file <b>{0}</b> could not be saved.<br />'
-                    'Reason: {1}</p>').format(str(fpath), str(why)))
+                    'Reason: {1}</p>').format(fpath, str(why)))
 
     @pyqtSlot()
     def on_diffButton_clicked(self):

eric ide

mercurial