diff -r 90a9aefd4253 -r 0c6d32ec64f1 eric6/Utilities/ClassBrowsers/idlclbr.py --- a/eric6/Utilities/ClassBrowsers/idlclbr.py Sun Sep 20 18:32:28 2020 +0200 +++ b/eric6/Utilities/ClassBrowsers/idlclbr.py Sun Sep 20 18:32:43 2020 +0200 @@ -266,7 +266,7 @@ # convert lineno to be zero based lineno -= 1 # 1. search for opening brace '{' - while lineno < len(lines) and not "{" in lines[lineno]: + while lineno < len(lines) and "{" not in lines[lineno]: lineno += 1 depth = lines[lineno].count("{") - lines[lineno].count("}") # 2. search for ending line, i.e. matching closing brace '}' @@ -293,7 +293,7 @@ """ # convert lineno to be zero based lineno -= 1 - while lineno < len(lines) and not ";" in lines[lineno]: + while lineno < len(lines) and ";" not in lines[lineno]: lineno += 1 if ";" in lines[lineno]: # found an end indicator, i.e. ';'