* tools/dist/release.py: Python3 compatibility fixes.

The 'clean-dist' subcommand was broken, doing nothing.
The 'write-changelog' subcommand was lacking some blank lines.
The Python '2to3' utility suggested these particular fixes (and also made
some bad suggestions).


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1883663 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/dist/release.py b/tools/dist/release.py
index a3fc685..d46389e 100755
--- a/tools/dist/release.py
+++ b/tools/dist/release.py
@@ -1149,7 +1149,7 @@
         return (version.major, version.minor)
 
     filenames = stdout.split('\n')
-    filenames = filter(lambda x: x.startswith('subversion-'), filenames)
+    filenames = [x for x in filenames if x.startswith('subversion-')]
     versions = set(map(Version, filenames))
     to_keep = set()
     # TODO: When we release 1.A.0 GA we'll have to manually remove 1.(A-2).* artifacts.
@@ -1649,7 +1649,7 @@
     # Output the sorted changelog entries
     # 1) Uncategorized changes
     print_section(changes_dict, None, None, None)
-    print
+    print()
     # 2) User-visible changes
     print(' User-visible changes:')
     print_section(changes_dict, 'U', None, None)
@@ -1661,7 +1661,7 @@
     print_section(changes_dict, 'U', 'clientserver', 'Client-side and server-side bugfixes')
     print_section(changes_dict, 'U', 'other', 'Other tool improvements and bugfixes')
     print_section(changes_dict, 'U', 'bindings', 'Bindings bugfixes', mandatory=True)
-    print
+    print()
     # 3) Developer-visible changes
     print(' Developer-visible changes:')
     print_section(changes_dict, 'D', None, None)