misc: extras update list_api_changes.py to PY3
Type: refactor Change-Id: I099d78393675b7aac37e89df98527c361054077b Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
This commit is contained in:

committed by
Dave Wallace

parent
b3f58e1049
commit
57783efb82
@ -1,5 +1,8 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python3
|
||||||
import os, fnmatch, subprocess
|
from __future__ import print_function
|
||||||
|
import fnmatch
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
starttag = 'v19.08-rc0'
|
starttag = 'v19.08-rc0'
|
||||||
endtag = 'HEAD'
|
endtag = 'HEAD'
|
||||||
@ -18,16 +21,16 @@ for f in apifiles:
|
|||||||
if f[0:2] == './':
|
if f[0:2] == './':
|
||||||
f = f[2:]
|
f = f[2:]
|
||||||
if emit_md:
|
if emit_md:
|
||||||
print "| @c %s ||" % f
|
print("| @c %s ||" % f)
|
||||||
print "| ------- | ------- |"
|
print("| ------- | ------- |")
|
||||||
for line in commits.splitlines():
|
for line in commits.splitlines():
|
||||||
parts = line.strip().split()
|
parts = line.strip().split()
|
||||||
commit = parts[0]
|
commit = parts[0]
|
||||||
message = " ".join(parts[1:]).replace("|", "\|")
|
message = b" ".join(parts[1:]).decode().replace("|", r"\|")
|
||||||
print "| [%s](https://gerrit.fd.io/r/gitweb?" \
|
print("| [%s](https://gerrit.fd.io/r/gitweb?"
|
||||||
"p=vpp.git;a=commit;h=%s) | %s |" % (
|
"p=vpp.git;a=commit;h=%s) | %s |" % (
|
||||||
commit, commit, message)
|
commit, commit, message))
|
||||||
print
|
print()
|
||||||
else:
|
else:
|
||||||
print f
|
print(f)
|
||||||
print commits
|
print(commits)
|
||||||
|
Reference in New Issue
Block a user