Skip to content

Commit ab5a8c8

Browse files
committed
make release notes script depend use python3
1 parent 4686ff6 commit ab5a8c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/make_release_notes.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# Copyright 2019 Google LLC
44
#
@@ -149,8 +149,9 @@ def local_issue_link(self, issues):
149149
"""
150150
issue_link_list = []
151151
issue_list = issues.split(", ")
152+
translate = str.maketrans('', '', string.punctuation)
152153
for issue in issue_list:
153-
issue = issue.translate(None, string.punctuation)
154+
issue = issue.translate(translate)
154155
link = '//github.com/%s/issues/%s' % (self.local_repo, issue)
155156
issue_link_list.append('[#%s](%s)' % (issue, link))
156157
return "(" + ", ".join(issue_link_list) + ")"

0 commit comments

Comments
 (0)