Skip to content

Commit 1808fa8

Browse files
committed
fix style and minor nitpicks
1 parent b997dc0 commit 1808fa8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

graalpython/com.oracle.graal.python.test/src/tests/cpyext/test_misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
22
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
33
#
44
# The Universal Permissive License (UPL), Version 1.0

mx.graalpython/mx_graalpython.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,9 @@ def update_import(name, rev="origin/master", callback=None):
736736

737737
def update_import_cmd(args):
738738
"""Update our mx or overlay imports"""
739-
if any("overlay" in arg for arg in args):
739+
if not args:
740+
args = ["truffle"]
741+
if "overlay" in args:
740742
mx.log("Updating overlays")
741743
dirs = os.listdir(os.path.join(SUITE.dir, ".."))
742744
for d in dirs:
@@ -752,9 +754,7 @@ def update_import_cmd(args):
752754
tip = str(vc.tip(overlaydir)).strip()
753755
with open(jsonnetfile, "w") as f:
754756
f.write('{ overlay: "%s" }\n' % tip)
755-
return
756-
if not args:
757-
args = ["truffle"]
757+
args.remove("overlay")
758758
if "sulong" in args:
759759
args.append("regex")
760760
if "regex" in args:

0 commit comments

Comments
 (0)