Author: julianfoad Date: Fri Nov 20 10:45:09 2020 New Revision: 1883663 URL: http://svn.apache.org/viewvc?rev=1883663&view=rev Log: * 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). Modified: subversion/trunk/tools/dist/release.py Modified: subversion/trunk/tools/dist/release.py URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1883663&r1=1883662&r2=1883663&view=diff ============================================================================== --- subversion/trunk/tools/dist/release.py (original) +++ subversion/trunk/tools/dist/release.py Fri Nov 20 10:45:09 2020 @@ -1149,7 +1149,7 @@ def clean_dist(args): 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 @@ def write_changelog(args): # 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 @@ def write_changelog(args): 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)