Skip to content

Commit 502d8d8

Browse files
committed
Use modern isinstance with |
1 parent dc5123c commit 502d8d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/lsst/sconsUtils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ def runExternal(cmd, fatal=False, msg=None):
192192

193193
# Run with shell unless given a list of options
194194
shell = True
195-
if isinstance(cmd, (list, tuple)):
195+
if isinstance(cmd, list | tuple):
196196
shell = False
197197

198198
try:

0 commit comments

Comments
 (0)