Make generate_authors.py write binary to support Unicode

This commit is contained in:
Ram Rachum 2019-05-09 08:09:11 +03:00
parent 7a5beb1c10
commit ceee13a147
1 changed files with 3 additions and 1 deletions

View File

@ -17,6 +17,7 @@ You probably want to run it this way:
import subprocess
import sys
def drop_recurrences(iterable):
@ -44,7 +45,8 @@ def iterate_authors_by_chronological_order():
def print_authors():
for author in iterate_authors_by_chronological_order():
print(author)
sys.stdout.buffer.write(author.encode())
sys.stdout.buffer.write(b'\n')
if __name__ == '__main__':