]> git.pld-linux.org Git - projects/pld-ftp-admin.git/blobdiff - modules/common.py
more python3 readiness
[projects/pld-ftp-admin.git] / modules / common.py
index 19f3aa8949e3c09076ec72d554ec46f763b6dd5d..2429749b58bd21cfdc8fd215ede217464b6b513d 100644 (file)
@@ -1,5 +1,7 @@
 # vi: encoding=utf-8 ts=8 sts=4 sw=4 et
 
+from __future__ import print_function
+
 import os, sys, config
 
 def fileexists(path):
@@ -11,7 +13,7 @@ def fileexists(path):
 
 def checkdir(dir):
     if not fileexists(dir):
-        print >>sys.stderr, 'ERR: ' + config.value['ftp_dir']+'/' + dir + " does not exist"
+        print('ERR: ' + config.value['ftp_dir']+'/' + dir + " does not exist", file=sys.stderr)
         sys.exit(1)
 
 if 'HOME' in os.environ:
This page took 0.284394 seconds and 4 git commands to generate.