src/eric7/CodeFormatting/BlackUtilities.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9214
bd28e56047d7
child 9436
731d146193e2
diff -r e9e7eca7efee -r bf71ee032bb4 src/eric7/CodeFormatting/BlackUtilities.py
--- a/src/eric7/CodeFormatting/BlackUtilities.py	Wed Jul 13 11:16:20 2022 +0200
+++ b/src/eric7/CodeFormatting/BlackUtilities.py	Wed Jul 13 14:55:47 2022 +0200
@@ -17,7 +17,7 @@
 def getDefaultConfiguration():
     """
     Function to generate a default set of configuration parameters.
-    
+
     @return dictionary containing the default parameters
     @rtype dict
     """
@@ -35,7 +35,7 @@
 def compileRegExp(regexp):
     """
     Function to compile a given regular expression.
-    
+
     @param regexp regular expression to be compiled
     @type str
     @return compiled regular expression object
@@ -51,7 +51,7 @@
 def validateRegExp(regexp):
     """
     Function to validate a given regular expression.
-    
+
     @param regexp regular expression to be validated
     @type str
     @return tuple containing a flag indicating validity and an error message
@@ -65,23 +65,20 @@
             return (
                 False,
                 QCoreApplication.translate(
-                    "BlackUtilities",
-                    "Invalid regular expression: {0}"
-                ).format(str(e))
+                    "BlackUtilities", "Invalid regular expression: {0}"
+                ).format(str(e)),
             )
         except IndexError:
             return (
                 False,
                 QCoreApplication.translate(
-                    "BlackUtilities",
-                    "Invalid regular expression: missing group name"
-                )
+                    "BlackUtilities", "Invalid regular expression: missing group name"
+                ),
             )
     else:
         return (
             False,
             QCoreApplication.translate(
-                "BlackUtilities",
-                "A regular expression must be given."
-            )
+                "BlackUtilities", "A regular expression must be given."
+            ),
         )

eric ide

mercurial