use python3

This commit is contained in:
j 2021-11-05 10:00:24 +00:00
parent b43e9f64e3
commit a40ccbaac9

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python3
from __future__ import division from __future__ import division
import lxml import lxml
@ -39,5 +39,5 @@ for g in tree.xpath('//generatoritem'):
'in': _start/fps, 'out': (_end-1)/fps, 'value': value 'in': _start/fps, 'out': (_end-1)/fps, 'value': value
}) })
with open(target, 'w') as f: with open(target, 'wb') as f:
f.write(ox.srt.encode(data)) f.write(ox.srt.encode(data))