mirror of https://github.com/cool-RR/PySnooper.git
Make generate_authors.py write binary to support Unicode
This commit is contained in:
parent
7a5beb1c10
commit
ceee13a147
|
@ -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__':
|
||||
|
|
Loading…
Reference in New Issue