--- 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." + ), )