#NEWLINE# def __updateFilterMatchPatterns( self ) : #NEWLINE# #INDENT# t = self . __patternWidget . getText ( ) #NEWLINE# patterns = [ ] #NEWLINE# for pattern in t . split ( ) : #NEWLINE# #INDENT# if ( '*' not in pattern ) : #NEWLINE# #INDENT# pattern = ( ( '*' + pattern ) + '*' ) #NEWLINE# #UNINDENT# patterns . append ( patterns ) #NEWLINE# #UNINDENT# with Gaffer . BlockedConnection ( self . _pathFilterChangedConnection ( ) ) : #NEWLINE# #INDENT# self . pathFilter ( ) . setMatchPatterns ( patterns ) #NEWLINE# self . pathFilter ( ) . setEnabled ( len ( patterns ) )