UI/FindFileDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3030
4a0a82ddd9d2
child 3060
5883ce99ee12
--- a/UI/FindFileDialog.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/UI/FindFileDialog.py	Fri Nov 01 15:48:48 2013 +0100
@@ -145,7 +145,8 @@
             self.__lastFileItem.setFirstColumnSpanned(True)
             self.__lastFileItem.setExpanded(True)
             if self.__replaceMode:
-                self.__lastFileItem.setFlags(self.__lastFileItem.flags() | \
+                self.__lastFileItem.setFlags(
+                    self.__lastFileItem.flags() | \
                     Qt.ItemFlags(Qt.ItemIsUserCheckable | Qt.ItemIsTristate))
                 # Qt bug:
                 # item is not user checkable if setFirstColumnSpanned
@@ -369,7 +370,8 @@
         try:
             search = re.compile(txt, flags)
         except re.error as why:
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Invalid search expression"),
                 self.trUtf8("""<p>The search expression is not valid.</p>"""
                             """<p>Error: {0}</p>""").format(str(why)))
@@ -604,7 +606,8 @@
                         Utilities.readEncodedFileWithHash(fn)
                     lines = text.splitlines(True)
                 except (UnicodeError, IOError) as err:
-                    E5MessageBox.critical(self,
+                    E5MessageBox.critical(
+                        self,
                         self.trUtf8("Replace in Files"),
                         self.trUtf8(
                             """<p>Could not read the file <b>{0}</b>."""
@@ -618,7 +621,8 @@
                 # Check the original and the current hash. Skip the file,
                 # if hashes are different.
                 if origHash != hash:
-                    E5MessageBox.critical(self,
+                    E5MessageBox.critical(
+                        self,
                         self.trUtf8("Replace in Files"),
                         self.trUtf8(
                             """<p>The current and the original hash of the"""
@@ -643,7 +647,8 @@
                 try:
                     Utilities.writeEncodedFile(fn, txt, encoding)
                 except (IOError, Utilities.CodingError, UnicodeError) as err:
-                    E5MessageBox.critical(self,
+                    E5MessageBox.critical(
+                        self,
                         self.trUtf8("Replace in Files"),
                         self.trUtf8(
                             """<p>Could not save the file <b>{0}</b>."""

eric ide

mercurial