mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +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
|
||||
"""
|
||||
from io import BytesIO
|
||||
b = BytesIO()
|
||||
b = io.BytesIO()
|
||||
self.save(b, 'PNG')
|
||||
return b.getvalue()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user