From a40ccbaac952520e596f0337b309eab65b980c9c Mon Sep 17 00:00:00 2001 From: j Date: Fri, 5 Nov 2021 10:00:24 +0000 Subject: [PATCH] use python3 --- fcp2srt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fcp2srt.py b/fcp2srt.py index c29b2c9..9d49f70 100755 --- a/fcp2srt.py +++ b/fcp2srt.py @@ -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))