Skip to content

Commit

Permalink
Removed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 31, 2017
1 parent 8a86e48 commit f0a08b4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2236,12 +2236,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 f0a08b4

Please sign in to comment.