From f3ba6e4a943b59ba358205e8f683e93bc841502d Mon Sep 17 00:00:00 2001 From: Rob Hoes Date: Wed, 8 Mar 2023 14:43:34 +0000 Subject: [PATCH] CA-375634: Move probe-device-for-file to Python 3 Signed-off-by: Rob Hoes --- scripts/probe-device-for-file | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/probe-device-for-file b/scripts/probe-device-for-file index 2174c5aa636..be07f40758f 100755 --- a/scripts/probe-device-for-file +++ b/scripts/probe-device-for-file @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # (c) Anil Madhavapeddy, Citrix Systems Inc, 2008 # Checks for the existence of a file on a device @@ -41,7 +41,7 @@ def stderr_redirected(to=os.devnull): if __name__ == "__main__": if len(sys.argv) != 3: - print "Usage: %s " % sys.argv[0] + print("Usage: %s " % sys.argv[0]) sys.exit(2) device = sys.argv[1] file = sys.argv[2]