use python3

This commit is contained in:
j 2021-11-05 10:00:24 +00:00
parent b43e9f64e3
commit a40ccbaac9
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import division
import lxml
@ -39,5 +39,5 @@ for g in tree.xpath('//generatoritem'):
'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))