Skip to content

Commit

Permalink
Removed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 22, 2019
1 parent b178b85 commit 175bbee
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/PIL/Image.py
Expand Up @@ -2569,13 +2569,6 @@ 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; "
"for portability, change the call to read:\n"
" frombuffer(mode, size, data, 'raw', mode, 0, 1)",
RuntimeWarning,
stacklevel=2,
)
args = mode, 0, 1
if args[0] in _MAPMODES:
im = new(mode, (1, 1))
Expand Down

0 comments on commit 175bbee

Please sign in to comment.