Skip to content

Commit a35eb5b

Browse files
committed
mx_graalpython.py: update_imports - use mx.get_opts() instead of mx._opts
1 parent b8687d9 commit a35eb5b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1938,7 +1938,7 @@ def update_import_cmd(args):
19381938
overlaytip = str(vc.tip(overlaydir)).strip()
19391939

19401940
# update ci import in all our repos, commit the full update
1941-
prev_verbosity = mx._opts.very_verbose
1941+
prev_verbosity = mx.get_opts().very_verbose
19421942
for repo in repos:
19431943
jsonnetfile = os.path.join(repo, "ci.jsonnet")
19441944
with open(jsonnetfile, "w") as f:
@@ -1951,10 +1951,10 @@ def update_import_cmd(args):
19511951
if not args.no_push:
19521952
for repo in repos_updated:
19531953
try:
1954-
mx._opts.very_verbose = True
1954+
mx.get_opts().very_verbose = True
19551955
vc.git_command(repo, ["push", "-u", "origin", "HEAD:%s" % current_branch], abortOnError=True)
19561956
finally:
1957-
mx._opts.very_verbose = prev_verbosity
1957+
mx.get_opts().very_verbose = prev_verbosity
19581958

19591959
if repos_updated:
19601960
mx.log("\n ".join(["These repos were updated:"] + repos_updated))

0 commit comments

Comments
 (0)