lds-gen.py: support both python3 and 2 (issue #520)
This commit is contained in:
Родитель
cdf6f34a17
Коммит
fc9ef36d41
10
lds-gen.py
10
lds-gen.py
|
@ -24,12 +24,12 @@ if __name__ == '__main__':
|
|||
else:
|
||||
last_line = line
|
||||
|
||||
print '# Automatically generated by lds-gen.py - DO NOT EDIT'
|
||||
print '{\n global:'
|
||||
print('# Automatically generated by lds-gen.py - DO NOT EDIT')
|
||||
print('{\n global:')
|
||||
if len(funcs) == 0:
|
||||
print ' *;'
|
||||
print(' *;')
|
||||
else:
|
||||
for f in sorted(funcs):
|
||||
print ' %s;' % f
|
||||
print(' %s;' % f)
|
||||
|
||||
print '};'
|
||||
print('};')
|
||||
|
|
Загрузка…
Ссылка в новой задаче