Do not encode strings for plain output

This commit is contained in:
Kayou 2021-01-30 11:13:53 +01:00 committed by GitHub
parent 93977542b3
commit 90f894b541
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,8 +92,6 @@ def plain_print_dict(d, depth=0):
print("{}{}".format("#" * (depth + 1), k)) print("{}{}".format("#" * (depth + 1), k))
plain_print_dict(v, depth + 1) plain_print_dict(v, depth + 1)
else: else:
if isinstance(d, str):
d = d.encode("utf-8")
print(d) print(d)