Skip to content

Commit

Permalink
Changed default frombuffer raw decoder args
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 1, 2018
1 parent e5bd7eb commit 015cd66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2386,7 +2386,7 @@ def frombuffer(mode, size, data, decoder_name="raw", *args):
" 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 015cd66

Please sign in to comment.