#NEWLINE# def _ensure_not_separator( self , name ) : #NEWLINE# #INDENT# 'Check if the separator is contained in passed arg\n        if so, it returns 1 and issue a log (level warning)\n        otherwise, it returns 0\n        It is used to prevent key collision\n        name: the string to check (string)\n        ' #NEWLINE# test = self . re_check_separator . search ( name ) #NEWLINE# if ( not ( test == None ) ) : #NEWLINE# #INDENT# self . logger . warning ( ( 'attribut or node %(name)s already contains key separator %(sep)s, this could lead to strange behaviours (keys collision)' % { #NEWLINE# #INDENT# 'name' : name , #NEWLINE# 'sep' : self . separator , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# return 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 0