Skip to content

Commit

Permalink
Merge pull request #4086 from radarhere/frombuffer_warning
Browse files Browse the repository at this point in the history
Updated warning to specify time of change
  • Loading branch information
radarhere committed Sep 25, 2019
2 parents 1608a15 + 595a8fd commit 0118a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Expand Up @@ -2593,7 +2593,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; "
"the frombuffer defaults will change in Pillow 7.0.0; "
"for portability, change the call to read:\n"
" frombuffer(mode, size, data, 'raw', mode, 0, 1)",
RuntimeWarning,
Expand Down

0 comments on commit 0118a8f

Please sign in to comment.