def has_pattern(self, decl_string):
if self.__begin == "<STR_LIT:<>":<EOL><INDENT>decl_string = re.sub("<STR_LIT>", "<STR_LIT>", decl_string).strip()<EOL><DEDENT>last_part = decl_string.split('<STR_LIT>')[-<NUM_LIT:1>]<EOL>return (<EOL>decl_string.find(self.__begin) != -<NUM_LIT:1> and<EOL>last_part.find(self.__end) != -<NUM_LIT:1><EOL>)<EOL>
Implementation detail