(self)
return queue_tag_list
Compile regex strings from queue_tag_re option and return list of compiled regex/tag pairs
Compile regex strings from queue_tag_re option and return list of compiled regex/tag pairs
Compile regex strings from queue_tag_re option and return list of compiled regex / tag pairs
def _compile_tag_re(self):
        """
        Compile regex strings from queue_tag_re option and return list of compiled regex/tag pairs
        """
        queue_tag_list = []
        for regex_str, tags in iteritems(self._queue_tag_re):
            try:
                queue_tag_list.append([re.compile(regex_str), [t.strip() for t in tags.split(',')]])
            except TypeError:
                self.log.warning('%s is not a valid regular expression and will be ignored', regex_str)
        return queue_tag_list
def _compile_tag_re ( self ) : queue_tag_list = [ ] for regex_str , tags in iteritems ( self . _queue_tag_re ) : try : queue_tag_list . append ( [ re . compile ( regex_str ) , [ t . strip ( ) for t in tags . split ( ',' ) ] ] ) except TypeError : self . log . warning ( '%s is not a valid regular expression and will be ignored' , regex_str ) return queue_tag_list