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__":