mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
py3 compat
This commit is contained in:
parent
f2ee824706
commit
8f15a04d8a
@ -224,7 +224,7 @@ class POT(Command): # {{{
|
||||
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…
x
Reference in New Issue
Block a user