From 8f15a04d8a3ccdfbe170613019cc7fe59e127d1e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 23 Aug 2020 14:02:13 +0530 Subject: [PATCH] py3 compat --- setup/translations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/translations.py b/setup/translations.py index 8aa8cf8b63..6bdcb46708 100644 --- a/setup/translations.py +++ b/setup/translations.py @@ -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()