Project

General

Profile

« Previous | Next » 

Revision 6628

dict2redmine: Store term_str in a var before using it, like sources_str

View differences:

dict2redmine
53 53
    for row in reader:
54 54
        term = row[term_col]
55 55
        sources = map(simplify_url, row[sources_col].split(source_sep))
56
        sources_str = source_sep.join(map(source2redmine_url, sources))
57 56
        def_ = row[def_col]
58 57
        
59
        writer.writerow([redmine_url(term, sources[0]), sources_str, def_])
58
        term_str = redmine_url(term, sources[0])
59
        sources_str = source_sep.join(map(source2redmine_url, sources))
60
        
61
        writer.writerow([term_str, sources_str, def_])
60 62

  
61 63
main()

Also available in: Unified diff