src/eric7/UI/Browser.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9573
9960d19d66b5
diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/UI/Browser.py
--- a/src/eric7/UI/Browser.py	Sun Nov 06 11:22:39 2022 +0100
+++ b/src/eric7/UI/Browser.py	Mon Nov 07 17:19:58 2022 +0100
@@ -36,6 +36,7 @@
 from eric7.EricWidgets import EricFileDialog, EricMessageBox
 from eric7.EricWidgets.EricApplication import ericApp
 from eric7.Project.ProjectBrowserModel import ProjectBrowserSimpleDirectoryItem
+from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
 from eric7.Utilities import MimeTypes
 
 from .BrowserModel import (
@@ -1012,15 +1013,13 @@
         @type str
         """
         try:
-            from send2trash import send2trash as s2t
+            from send2trash import send2trash as s2t  # __IGNORE_WARNING_I10__
 
             trashMsg = self.tr("Do you really want to move this file to the" " trash?")
         except ImportError:
             s2t = os.remove
             trashMsg = self.tr("Do you really want to delete this file?")
 
-        from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
-
         dlg = DeleteFilesConfirmationDialog(
             self.parent(), self.tr("Delete File"), trashMsg, [fn]
         )
@@ -1045,7 +1044,7 @@
         @type str
         """
         try:
-            from send2trash import send2trash
+            from send2trash import send2trash  # __IGNORE_WARNING_I10__
 
             s2tAvailable = True
             trashMsg = self.tr(
@@ -1055,8 +1054,6 @@
             s2tAvailable = False
             trashMsg = self.tr("Do you really want to delete this directory?")
 
-        from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
-
         dlg = DeleteFilesConfirmationDialog(
             self.parent(), self.tr("Delete Directory"), trashMsg, [dn]
         )
@@ -1089,7 +1086,7 @@
             fileNames.append(itm.fileName())
 
         try:
-            from send2trash import send2trash as s2t
+            from send2trash import send2trash as s2t  # __IGNORE_WARNING_I10__
 
             trashMsg = self.tr(
                 "Do you really want to move these files to the" " trash?"
@@ -1098,8 +1095,6 @@
             s2t = os.remove
             trashMsg = self.tr("Do you really want to delete these files?")
 
-        from eric7.UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
-
         dlg = DeleteFilesConfirmationDialog(
             self.parent(), self.tr("Delete Files"), trashMsg, sorted(fileNames)
         )

eric ide

mercurial