#NEWLINE# def __replace_occupied_params( self , pattern , params ) : #NEWLINE# #INDENT# if ( pattern is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( params is None ) : #NEWLINE# #INDENT# return pattern #NEWLINE# #UNINDENT# for ( k , v ) in params . items ( ) : #NEWLINE# #INDENT# target = ( ( '[' + k ) + ']' ) #NEWLINE# pattern . replace ( target , v ) #NEWLINE# #UNINDENT# return pattern