Mercurial > code > home > repos > light9
diff bin/wavecurve @ 1859:f066d6e874db
2to3 with these fixers: all idioms set_literal
Ignore-this: cbd28518218c2f0ddce8c4f92d3b8b33
author | drewp@bigasterisk.com |
---|---|
date | Wed, 22 May 2019 00:08:22 +0000 |
parents | 7772cc48e016 |
children | 3c523c71da29 |
line wrap: on
line diff
--- a/bin/wavecurve Tue May 21 23:56:12 2019 +0000 +++ b/bin/wavecurve Wed May 22 00:08:22 2019 +0000 @@ -5,12 +5,12 @@ def createCurve(inpath, outpath, t): - print "reading %s, writing %s" % (inpath, outpath) + print("reading %s, writing %s" % (inpath, outpath)) points = simp(inpath.replace('.ogg', '.wav'), seconds_per_average=t) f = file(outpath, 'w') for time_val in points: - print >> f, "%s %s" % time_val + print("%s %s" % time_val, file=f) parser = optparse.OptionParser(usage="""%prog inputSong.wav outputCurve