--- a/eric7/UI/FindLocationWidget.py Sun Dec 26 18:43:48 2021 +0100 +++ b/eric7/UI/FindLocationWidget.py Sun Dec 26 18:49:26 2021 +0100 @@ -147,10 +147,11 @@ self.findStatusLabel.clear() - if "*" in fileName or "?" in fileName: - patternFormat = "{0}{1}{2}" - else: - patternFormat = "{0}*{1}{2}" + patternFormat = ( + "{0}{1}{2}" + if "*" in fileName or "?" in fileName else + "{0}*{1}{2}" + ) fileNamePatterns = [patternFormat.format( fileName or "*", os.extsep, fileExt or "*")]