Convert from "print ..." to "print(...)"
[hooke.git] / contrib / mfp_igor_scripts / h5export.py
index 2ee7d6fee80ced8389aac521e561ba6987f6c0e0..0cd7893e3af09f5844ba84fb54b614a1b4a201a5 100644 (file)
@@ -30,7 +30,7 @@ exportdir=os.path.join(h5dir,'exported')
 try:
        os.mkdir(exportdir)
 except:
-       print 'mkdir error, maybe the export directory already exists?'
+       print('mkdir error, maybe the export directory already exists?')
 
 def h5exportfunc(name):
        Deflname=name
@@ -43,9 +43,10 @@ def h5exportfunc(name):
                        notes=f[Deflname].attrs['IGORWaveNote']
                        springmatch=notes.index("SpringConstant: ")+len("SpringConstant: ")
                        springc=notes[springmatch:].split("\r",1)[0]  #probably extracting the leading numbers can be way more elegant than this
-                       print Deflname  
+                       print(Deflname)
                except:
-                       print 'Something bad happened with '+Deflname+', ignoring it'
+                       print('Something bad happened with '+Deflname+
+                             ', ignoring it')
                        return None
                        #returning anything but None halts the visit procedure