mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-18 16:35:31 +01:00
py3 compat
This commit is contained in:
parent
f2ee824706
commit
8f15a04d8a
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ def run(self, opts):
|
|||
pot_header = self.pot_header()
|
||||
|
||||
with tempfile.NamedTemporaryFile() as fl:
|
||||
fl.write('\n'.join(files))
|
||||
fl.write('\n'.join(files).encode('utf-8'))
|
||||
fl.flush()
|
||||
out = tempfile.NamedTemporaryFile(suffix='.pot', delete=False)
|
||||
out.close()
|
||||
|
|
|
|||
Loading…
Reference in a new issue