Skip to content

Commit

Permalink
Merge e36890c into 9d14c54
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Feb 19, 2016
2 parents 9d14c54 + e36890c commit 3408a75
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2104,13 +2104,7 @@ 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 # may change to (mode, 0, 1) post-1.1.6
args = mode, 0, 1
if args[0] in _MAPMODES:
im = new(mode, (1, 1))
im = im._new(
Expand Down

0 comments on commit 3408a75

Please sign in to comment.