]> TLD Linux GIT Repositories - tld-ftp-admin.git/blobdiff - bin/pfa-unlocktree
- merged PLD changes
[tld-ftp-admin.git] / bin / pfa-unlocktree
index 32e06a4ecdb94c7bd86030b7095228da26448111..b4391203d6b0aa0afee1227639200b757ddd8204 100755 (executable)
@@ -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])))