mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Updated warning to specify time of change
This commit is contained in:
parent
1608a15ab5
commit
595a8fd33c
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user