Skip to content

Commit 8a9cb54

Browse files
committed
make-changelog.py: Make work with Python 3
1 parent 76d8823 commit 8a9cb54

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

extra/make-changelog.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import sys
66
from collections import defaultdict
77
from textwrap import wrap
8-
from email.Utils import formatdate
8+
from email.utils import formatdate
99

1010
repo = git.Repo('.')
1111
changelog = defaultdict(list)
@@ -14,13 +14,13 @@
1414
commit = repo.commit(id)
1515
changelog[commit.author.name].append(commit.summary)
1616

17-
print 'bash-completion (X.Y)'
18-
print
17+
print('bash-completion (X.Y)')
18+
print('')
1919

2020
for author in sorted(changelog.keys()):
21-
print " [ %s ]" % author
21+
print(' [ %s ]' % author)
2222
for log in changelog[author]:
23-
print '\n'.join(wrap(log, initial_indent=' * ', subsequent_indent=' '))
24-
print
23+
print('\n'.join(wrap(log, initial_indent=' * ', subsequent_indent=' ')))
24+
print('')
2525

26-
print ' -- David Paleino <d.paleino@gmail.com> ', formatdate(localtime=True)
26+
print(' -- David Paleino <d.paleino@gmail.com> ', formatdate(localtime=True))

0 commit comments

Comments
 (0)