From 57458c9b14125c6cf4a116c12a4c1071ab184463 Mon Sep 17 00:00:00 2001 From: "chuck.mcauley" Date: Thu, 14 Oct 2021 14:31:38 -0400 Subject: [PATCH] update for python3 --- utils/nfs-ls.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/utils/nfs-ls.py b/utils/nfs-ls.py index 9d6961e..8cba2e7 100644 --- a/utils/nfs-ls.py +++ b/utils/nfs-ls.py @@ -8,21 +8,20 @@ import libnfs def usage(): - print 'Usage: nfs-ls.py ' - print '' - print 'Example: nfs-ls.py nfs://127.0.0.1/data' + print('Usage: nfs-ls.py ') + print('') + print('Example: nfs-ls.py nfs://127.0.0.1/data') sys.exit() def ls(dir): - import libnfs nfs = libnfs.NFS(dir) - print 'nfs', nfs + print('nfs %', nfs) for ent in nfs.listdir("."): if ent in ['.', '..']: continue st = nfs.lstat(ent) - print ent, st + print(ent, st) if __name__ == "__main__":