/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/check-newsbugs.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-24 17:48:04 UTC
  • mfrom: (6921 work)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180324174804-xf22o05byoj12x1q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
    # Pattern to find bug numbers
55
55
    bug_pattern = re.compile("\#([0-9]+)")
56
56
    ret = set()
57
 
    with open(path, 'r') as f:
 
57
    f = open(path, 'r')
 
58
    try:
58
59
        section = ""
59
60
        for l in f.readlines():
60
61
            if l.strip() == "":
69
70
            else:
70
71
                section += l
71
72
        return ret
 
73
    finally:
 
74
        f.close()
72
75
 
73
76
 
74
77
def print_bug_url(bugno):