Skip to content

Commit

Permalink
Removed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 1, 2018
1 parent 015cd66 commit f1b2f9e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/PIL/Image.py
Expand Up @@ -2380,12 +2380,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 f1b2f9e

Please sign in to comment.