Consistently use surrogate escape by default.

This commit is contained in:
Stuart D. Gathman
2020-06-17 12:54:58 -04:00
parent 0efddd316a
commit 132e8326b5
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -548,7 +548,7 @@ if __name__ == '__main__':
return Milter.CONTINUE
for fname in sys.argv[1:]:
fp = open(fname,'rb')
msg = message_from_file(fp)
with open(fname,'rb') as fp:
msg = message_from_file(fp)
email.iterators._structure(msg)
check_attachments(msg,_list_attach)