Skip to content

Commit

Permalink
CA-375634: Move probe-device-for-file to Python 3
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
  • Loading branch information
robhoes committed Mar 8, 2023
1 parent b52ba67 commit f3ba6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/probe-device-for-file
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -41,7 +41,7 @@ def stderr_redirected(to=os.devnull):

if __name__ == "__main__":
if len(sys.argv) != 3:
print "Usage: %s <device> <file>" % sys.argv[0]
print("Usage: %s <device> <file>" % sys.argv[0])
sys.exit(2)
device = sys.argv[1]
file = sys.argv[2]
Expand Down

0 comments on commit f3ba6e4

Please sign in to comment.