blob: fb6856abff3ca36fcb9f349b7ec16e7e7cb519bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- a/CI/ExtractBuildArgs.py (original)
+++ b/CI/ExtractBuildArgs.py (refactored)
@@ -3,15 +3,15 @@
import json
if len(sys.argv) != 2:
- print >> sys.stderr, " Usage: python ExtractBuildArgs.py <ArgName>"
+ print(" Usage: python ExtractBuildArgs.py <ArgName>", file=sys.stderr)
exit (-1)
try:
data = json.load(open('BuildSpec.json'))
if sys.argv[1] == "cmakeFlags" and data["cmakeFlags"] != "":
- print(data["cmakeFlags"])
+ print((data["cmakeFlags"]))
elif sys.argv[1] == "branch" and data["branch"] != "":
- print(data["branch"])
+ print((data["branch"]))
except:
- print >> sys.stderr, "No related args found in BuildSpec.json"
+ print("No related args found in BuildSpec.json", file=sys.stderr)
exit(-1)
|