#NEWLINE# def search( self , ua ) : #NEWLINE# #INDENT# m = self . pattern . search ( ua ) #NEWLINE# if ( not m ) : #NEWLINE# #INDENT# return [ ] #NEWLINE# #UNINDENT# info = m . groupdict ( ) #NEWLINE# info [ 'name' ] = info [ 'name' ] . replace ( ' ' , '' ) #NEWLINE# if ( not info [ 'version' ] ) : #NEWLINE# #INDENT# info [ 'version' ] = self . alt_vr . search ( ua ) . groupdict ( ) [ 'version' ] #NEWLINE# #UNINDENT# return [ info ]