Commit Graph

1 Commits (6d07cec5887ef2802e09da1871cc4777c835ebcd)

Author SHA1 Message Date
Sam Doran 8b0c46a51a Use bytes rather than native string for result (#46281)
This prevents a stack trace in Python 3 when the result is an empty file since
the file is open in binary mode and a native string in Python 3 is str,
not bytes.

(cherry picked from commit 8b1ae30e2e)
6 years ago