make_distrib: Add Python 3 support (see issue #2856)

This commit is contained in:
Marshall Greenblatt
2020-01-10 12:53:02 +02:00
parent 15226b9332
commit e1132672ee
4 changed files with 50 additions and 36 deletions

View File

@ -9,6 +9,8 @@ optionally removing some of the object files in the input libs by regular
expression matching.
For usage information, run the script with a --help argument.
'''
from __future__ import absolute_import
from __future__ import print_function
import optparse
import os
import re
@ -51,7 +53,7 @@ def CombineLibraries(output, remove_re, inputs):
removals = CollectRemovals(remove_re, inputs)
if len(removals) > 0:
print 'Removals: ', removals
print('Removals: ', removals)
args = ['lib.exe', '/out:%s' % output]
args += ['/remove:%s' % obj for obj in removals]