Merge pull request #4086 from radarhere/frombuffer_warning

Updated warning to specify time of change
This commit is contained in:
Andrew Murray 2019-09-25 18:46:24 +10:00 committed by GitHub
commit 0118a8fdb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2593,7 +2593,7 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
if decoder_name == "raw":
if args == ():
warnings.warn(
"the frombuffer defaults may change in a future release; "
"the frombuffer defaults will change in Pillow 7.0.0; "
"for portability, change the call to read:\n"
" frombuffer(mode, size, data, 'raw', mode, 0, 1)",
RuntimeWarning,