--- a/eric6/DebugClients/Python/DebugClientBase.py Sun Apr 11 12:38:16 2021 +0200 +++ b/eric6/DebugClients/Python/DebugClientBase.py Sun Apr 11 16:53:48 2021 +0200 @@ -2397,8 +2397,5 @@ @return flag indicating eligibility @rtype bool """ - for pattern in self.noDebugList: - if fnmatch.fnmatch(scriptName, pattern): - return True - - return False + return any(fnmatch.fnmatch(scriptName, pattern) + for pattern in self.noDebugList)