1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

Related to c2645d0. Convert all python scripts to Python 3.

As stated in discussion, Python 2 is actively being deprecated
and the fix is easy, almost automatic.
This commit is contained in:
Veselin Georgiev 2020-05-28 19:55:48 +03:00
commit 52c5f505cf
3 changed files with 48 additions and 50 deletions

View file

@ -1,12 +1,12 @@
#!/usr/bin/env python2.7
#!/usr/bin/env python3
import os, sys, re
args = sys.argv
if len(args) != 3:
print "Usage: create_test.py <rawdata file> <report file>"
print "The .test file is written to stdout."
print("Usage: create_test.py <rawdata file> <report file>")
print("The .test file is written to stdout.")
sys.exit(1)
def readRawFile():
@ -57,4 +57,4 @@ def readResultFile():
delimiter = "-" * 80
lines = readRawFile() + [delimiter] + readResultFile()
sys.stdout.writelines(map(lambda s: s + "\n", lines))
sys.stdout.writelines([s + "\n" for s in lines])