mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
scripts/gen-mumble_app-qt-def.py: add Python 3 compatibility.
This commit is contained in:
parent
340c7b69fb
commit
c0d7aad069
@ -42,6 +42,8 @@
|
||||
# future, since the current iteration is likely to produce unneeded
|
||||
# exports.
|
||||
|
||||
from __future__ import (unicode_literals, print_function, division)
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
import re
|
||||
@ -110,6 +112,11 @@ def processExports(f, libs, symbols):
|
||||
if p.returncode != 0:
|
||||
raise Exception('dumpbin.exe failed: %s', stderr)
|
||||
|
||||
if stdout is not None:
|
||||
stdout = stdout.decode('utf-8')
|
||||
if stderr is not None:
|
||||
stderr = stderr.decode('utf-8')
|
||||
|
||||
symbol_re = re.compile('^.*\ (.*(%s)+?.*)$' % '|'.join(symbols))
|
||||
f.write('EXPORTS\n\n')
|
||||
|
||||
@ -124,7 +131,7 @@ def processExports(f, libs, symbols):
|
||||
|
||||
def main():
|
||||
if len(sys.argv) < 4:
|
||||
print 'Usage: gen-mumble_app-qt-def.py <release|debug> <qt-lib-path> <outfn>'
|
||||
print('Usage: gen-mumble_app-qt-def.py <release|debug> <qt-lib-path> <outfn>')
|
||||
sys.exit(1)
|
||||
|
||||
kind = sys.argv[1]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user