Updated warning to specify time of change

This commit is contained in:
Andrew Murray 2019-09-24 20:33:02 +10:00
parent 1608a15ab5
commit 595a8fd33c

View File

@ -2593,7 +2593,7 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
if decoder_name == "raw": if decoder_name == "raw":
if args == (): if args == ():
warnings.warn( 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" "for portability, change the call to read:\n"
" frombuffer(mode, size, data, 'raw', mode, 0, 1)", " frombuffer(mode, size, data, 'raw', mode, 0, 1)",
RuntimeWarning, RuntimeWarning,