/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to tools/fixed-in.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
class NewsParser(object):
12
12
 
13
13
    paren_exp_re = re.compile('\(([^)]+)\)')
14
 
    release_re = re.compile("bzr[ -]")
15
 
    release_prefix_length = len('bzr ')
 
14
    release_re = re.compile("brz[ -]")
 
15
    release_prefix_length = len('brz ')
16
16
    bugs_re = re.compile('#([0-9]+)')
17
17
 
18
18
    def __init__(self, news):
160
160
            elif msg_re.search(entry) is not None:
161
161
                found = True
162
162
            if found:
163
 
                print 'Bug %s was fixed in bzr-%s/%s by %s:' % (
164
 
                    number, release, date, authors)
165
 
                print entry
 
163
                print('Bug %s was fixed in brz-%s/%s by %s:' % (
 
164
                    number, release, date, authors))
 
165
                print(entry)
166
166
            seen += 1
167
167
    finally:
168
 
        print '%s bugs seen' % (seen,)
 
168
        print('%s bugs seen' % (seen,))
169
169
        news.close()
170
170
 
171
171