eric6/E5Gui/E5ErrorMessage.py

changeset 8221
0572a215bd2f
parent 8218
7c09585bd960
child 8243
cc717c2ae956
equal deleted inserted replaced
8220:006ee31b4835 8221:0572a215bd2f
50 @param message message to be checked 50 @param message message to be checked
51 @type str 51 @type str
52 @return flag indicating that the message should be filtered out 52 @return flag indicating that the message should be filtered out
53 @rtype bool 53 @rtype bool
54 """ 54 """
55 for filterStr in Globals.toList(_filterSettings.value( 55 return any(
56 "MessageFilters", [])) + _defaultFilters: 56 filterStr in message
57 if filterStr in message: 57 for filterStr in Globals.toList(_filterSettings.value(
58 return True 58 "MessageFilters", [])) + _defaultFilters
59 59 )
60 return False
61 60
62 61
63 class E5ErrorMessage(QErrorMessage): 62 class E5ErrorMessage(QErrorMessage):
64 """ 63 """
65 Class implementing a specialized error message dialog. 64 Class implementing a specialized error message dialog.

eric ide

mercurial