mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 18:36:17 +03:00
Remove redundant __future__ from docs
Co-Authored-By: Jon Dufresne <jon.dufresne@gmail.com>
This commit is contained in:
parent
3a34081db5
commit
0caa48b179
|
@ -18,7 +18,6 @@ in the :py:mod:`~PIL.Image` module::
|
||||||
If successful, this function returns an :py:class:`~PIL.Image.Image` object.
|
If successful, this function returns an :py:class:`~PIL.Image.Image` object.
|
||||||
You can now use instance attributes to examine the file contents::
|
You can now use instance attributes to examine the file contents::
|
||||||
|
|
||||||
>>> from __future__ import print_function
|
|
||||||
>>> print(im.format, im.size, im.mode)
|
>>> print(im.format, im.size, im.mode)
|
||||||
PPM (512, 512) RGB
|
PPM (512, 512) RGB
|
||||||
|
|
||||||
|
@ -67,7 +66,6 @@ Convert files to JPEG
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys
|
import os, sys
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
@ -89,7 +87,6 @@ Create JPEG thumbnails
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import os, sys
|
import os, sys
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
@ -120,7 +117,6 @@ Identify Image Files
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
import sys
|
import sys
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
||||||
|
@ -513,7 +509,6 @@ This is only available for JPEG and MPO files.
|
||||||
::
|
::
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from __future__ import print_function
|
|
||||||
im = Image.open(file)
|
im = Image.open(file)
|
||||||
print("original =", im.mode, im.size)
|
print("original =", im.mode, im.size)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user