Project

General

Profile

« Previous | Next » 

Revision 6639

dict2redmine: url_term(): Remove empty URL comments

View differences:

dict2redmine
29 29
    match = re.match(r'^('+url_comment_re+r'*).*?([\w:-]+)$', url)
30 30
    assert match
31 31
    provider_str, term = match.groups()
32
    provider = map(url_comment_text, re.findall(url_comment_re, provider_str))
32
    provider = filter(bool, map(url_comment_text,
33
        re.findall(url_comment_re, provider_str)))
33 34
    
34 35
    return ':'.join(provider+[term])
35 36

  

Also available in: Unified diff