mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-13 13:16:52 +03:00
use the already import io
instead of importing again from io (lgtm suggestion)
This commit is contained in:
parent
b84ab5223d
commit
e514fbbbb1
|
@ -679,8 +679,7 @@ class Image(object):
|
||||||
|
|
||||||
:returns: png version of the image as bytes
|
:returns: png version of the image as bytes
|
||||||
"""
|
"""
|
||||||
from io import BytesIO
|
b = io.BytesIO()
|
||||||
b = BytesIO()
|
|
||||||
self.save(b, 'PNG')
|
self.save(b, 'PNG')
|
||||||
return b.getvalue()
|
return b.getvalue()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user