X-Git-Url: https://git.tld-linux.org/?p=tld-ftp-admin.git;a=blobdiff_plain;f=modules%2Fcommon.py;h=59f715d9c1f21514d399c24293af9a7d031a9a2c;hp=39279defc3eacd6dcee12a6fd531e88da79b11eb;hb=51b9814081f743180ffed6c80fd7945acb554ce2;hpb=f7b22268ab563fa906be0653d037f1805e220e5c diff --git a/modules/common.py b/modules/common.py index 39279de..59f715d 100644 --- a/modules/common.py +++ b/modules/common.py @@ -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: