Skip to content

Commit 18920ee

Browse files
committed
test
test Auto stash before rebase of "test_codeql"
1 parent a203482 commit 18920ee

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/scripts/merge_packages.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@
1515
import json
1616
import sys
1717

18+
def load_file(filename):
19+
f = open(filename, "r")
20+
pkg = json.loads(f.read())["packages"][0]
21+
return pkg
1822

1923
def load_package(filename):
20-
pkg = json.load(open(filename))["packages"][0]
24+
pkg = load_file(filename)
2125
print("Loaded package {0} from {1}".format(pkg["name"], filename), file=sys.stderr)
2226
print("{0} platform(s), {1} tools".format(len(pkg["platforms"]), len(pkg["tools"])), file=sys.stderr)
2327
return pkg

0 commit comments

Comments
 (0)