This commit is contained in:
Arun Prakash Jana 2020-06-30 23:22:02 +05:30
parent ee680c1aae
commit 9609bc0084
No known key found for this signature in database
GPG Key ID: A75979F35C080412

2
buku
View File

@ -4211,6 +4211,8 @@ def print_single_rec(row, idx=0): # NOQA
try:
print(''.join(str_list))
except UnicodeEncodeError:
sys.stdout.buffer.write((''.join(str_list) + '\n').encode('utf-8'))
except BrokenPipeError:
sys.stdout = os.fdopen(1)
sys.exit(1)