aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Kahle <thomas.kahle@jpberlin.de>2015-06-18 10:00:50 +0200
committerThomas Kahle <thomas.kahle@jpberlin.de>2015-06-18 10:00:50 +0200
commit73b1e91d4b24b88fc9f2bbadae217f0156b42ab0 (patch)
treed129dbefe99cc8ef5d86427f242cbee71f473f20 /scripts
parentFix some whitespace problems (issue #22) (diff)
downloadtatt-73b1e91d4b24b88fc9f2bbadae217f0156b42ab0.tar.gz
tatt-73b1e91d4b24b88fc9f2bbadae217f0156b42ab0.tar.bz2
tatt-73b1e91d4b24b88fc9f2bbadae217f0156b42ab0.zip
Migrate print statements to function calls (issue @21)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/tatt14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/tatt b/scripts/tatt
index c5862a4..298973b 100755
--- a/scripts/tatt
+++ b/scripts/tatt
@@ -169,19 +169,19 @@ if not myJob.packageList==None:
try:
unmaskfile=open(config['unmaskfile'], 'r+')
except IOError:
- print "Your unmaskfile was not found, I will create it as"
- print config['unmaskfile']
+ print ("Your unmaskfile was not found, I will create it as")
+ print (config['unmaskfile'])
try:
unmaskfile=open(config['unmaskfile'], 'w')
unmaskfile.write(" ")
unmaskfile.close()
except IOError:
# If we can't write to the file, then it should be configured differently
- print " ".join(["Can not write to ",config['unmaskfile']])
- print "Maybe you don't have permission or the location is invalid."
- print " ".join(["Is",os.path.split(config['unmaskfile'])[0],"a writeable directory?"])
- print "Probably you want to configure a different unmaskfile"
- print "in your ~/.tatt. Exiting"
+ print (" ".join(["Can not write to ",config['unmaskfile']]))
+ print ("Maybe you don't have permission or the location is invalid.")
+ print (" ".join(["Is",os.path.split(config['unmaskfile'])[0],"a writeable directory?"]))
+ print ("Probably you want to configure a different unmaskfile")
+ print ("in your ~/.tatt. Exiting")
sys.exit(1)
unmaskfile=open(config['unmaskfile'], 'r+')