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

This commit is contained in:
Marshall Greenblatt
2020-01-13 11:04:13 +01:00
parent b98f142e0e
commit 3afa29d499
4 changed files with 136 additions and 105 deletions

View File

@ -2,6 +2,7 @@
# reserved. Use of this source code is governed by a BSD-style license that
# can be found in the LICENSE file.
from __future__ import absolute_import
from cef_parser import *
@ -96,7 +97,7 @@ if __name__ == "__main__":
# verify that the correct number of command-line arguments are provided
if len(sys.argv) < 2:
sys.stderr.write('Usage: ' + sys.argv[0] + ' <infile>')
sys.stderr.write('Usage: ' + sys.argv[0] + ' <infile>\n')
sys.exit()
# create the header object