X-Git-Url: https://git.tld-linux.org/?p=tld-ftp-admin.git;a=blobdiff_plain;f=bin%2Fpfa-unlocktree;h=b4391203d6b0aa0afee1227639200b757ddd8204;hp=32e06a4ecdb94c7bd86030b7095228da26448111;hb=51b9814081f743180ffed6c80fd7945acb554ce2;hpb=f7b22268ab563fa906be0653d037f1805e220e5c diff --git a/bin/pfa-unlocktree b/bin/pfa-unlocktree index 32e06a4..b439120 100755 --- a/bin/pfa-unlocktree +++ b/bin/pfa-unlocktree @@ -1,6 +1,8 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et +from __future__ import print_function + import sys, os sys.path.insert(0, os.environ['HOME']+'/tld-ftp-admin/modules') import ftptree @@ -8,10 +10,10 @@ import ftpio import config if len(sys.argv) < 2: - print "ERR: not enough parameters given" - print "unlock.py tree" + print("ERR: not enough parameters given") + print("unlock.py tree") sys.exit(1) for tree in sys.argv[1:]: ftpio.connect() - print "Unlock %s: %s" % (tree, ftpio.unlock(sys.argv[1])) + print("Unlock %s: %s" % (tree, ftpio.unlock(sys.argv[1])))