aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/sortChanges.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/maint/sortChanges.py')
-rwxr-xr-xscripts/maint/sortChanges.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/maint/sortChanges.py b/scripts/maint/sortChanges.py
index 986b94b025..2264b1c7fa 100755
--- a/scripts/maint/sortChanges.py
+++ b/scripts/maint/sortChanges.py
@@ -43,7 +43,7 @@ REPLACEMENTS = {
def score(s,fname=None):
m = re.match(r'^ +o ([^\n]*)\n(.*)', s, re.M|re.S)
if not m:
- print >>sys.stderr, "Can't score %r from %s"%(s,fname)
+ print("Can't score %r from %s"%(s,fname))
heading = m.group(1)
heading = REPLACEMENTS.get(heading, heading)
lw = m.group(1).lower()
@@ -100,9 +100,9 @@ changes.sort()
last_lw = "this is not a header"
for _, lw, header, rest in changes:
if lw == last_lw:
- print rest,
+ print(rest)
else:
- print
- print " o",header
- print rest,
+ print("")
+ print(" o %s" % (header))
+ print(rest),
last_lw = lw