mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-05 21:53:15 +03:00
Removed warning
This commit is contained in:
parent
8f91eff078
commit
2f5e24da48
|
@ -2592,13 +2592,6 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
|
||||||
|
|
||||||
if decoder_name == "raw":
|
if decoder_name == "raw":
|
||||||
if args == ():
|
if args == ():
|
||||||
warnings.warn(
|
|
||||||
"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,
|
|
||||||
stacklevel=2,
|
|
||||||
)
|
|
||||||
args = mode, 0, 1
|
args = mode, 0, 1
|
||||||
if args[0] in _MAPMODES:
|
if args[0] in _MAPMODES:
|
||||||
im = new(mode, (1, 1))
|
im = new(mode, (1, 1))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user