mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-18 11:14:46 +03:00
Merge fe1cf8e9c1
into 272377097a
This commit is contained in:
commit
dedae65d6c
|
@ -484,9 +484,9 @@ Reading from a string
|
|||
|
||||
::
|
||||
|
||||
import StringIO
|
||||
import io
|
||||
|
||||
im = Image.open(StringIO.StringIO(buffer))
|
||||
im = Image.open(io.StringIO(buffer))
|
||||
|
||||
Note that the library rewinds the file (using ``seek(0)``) before reading the
|
||||
image header. In addition, seek will also be used when the image data is read
|
||||
|
|
Loading…
Reference in New Issue
Block a user