Updated error string

Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2019-12-26 19:54:28 +11:00 committed by GitHub
parent fedb0407b4
commit c99257abb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2698,7 +2698,7 @@ def open(fp, mode="r"):
raise ValueError("bad mode %r" % mode) raise ValueError("bad mode %r" % mode)
elif isinstance(fp, io.StringIO): elif isinstance(fp, io.StringIO):
raise ValueError( raise ValueError(
"StringIO cannot be used to open an image. Binary data must be used instead" "StringIO cannot be used to open an image. Binary data must be used instead."
) )
exclusive_fp = False exclusive_fp = False