Skip to content

Commit

Permalink
Merge pull request #5477 from radarhere/python3
Browse files Browse the repository at this point in the history
Use python3
  • Loading branch information
hugovk committed May 8, 2021
2 parents 8354fa4 + 3795772 commit 2a94728
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/releasenotes/8.0.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Added a new ``formats`` parameter to :py:func:`.Image.open`:
* A list or tuple of formats to attempt to load the file in.
This can be used to restrict the set of formats checked.
Pass ``None`` to try all supported formats. You can print the set of
available formats by running ``python -m PIL`` or using
available formats by running ``python3 -m PIL`` or using
the :py:func:`PIL.features.pilinfo` function.

ImageOps.autocontrast: add mask parameter
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/IcnsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ def _accept(prefix):
if __name__ == "__main__":

if len(sys.argv) < 2:
print("Syntax: python IcnsImagePlugin.py [file]")
print("Syntax: python3 IcnsImagePlugin.py [file]")
sys.exit()

with open(sys.argv[1], "rb") as fp:
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2887,7 +2887,7 @@ def open(fp, mode="r", formats=None):
:param formats: A list or tuple of formats to attempt to load the file in.
This can be used to restrict the set of formats checked.
Pass ``None`` to try all supported formats. You can print the set of
available formats by running ``python -m PIL`` or using
available formats by running ``python3 -m PIL`` or using
the :py:func:`PIL.features.pilinfo` function.
:returns: An :py:class:`~PIL.Image.Image` object.
:exception FileNotFoundError: If the file cannot be found.
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/ImageShow.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def show_image(self, image, **options):
if __name__ == "__main__":

if len(sys.argv) < 2:
print("Syntax: python ImageShow.py imagefile [title]")
print("Syntax: python3 ImageShow.py imagefile [title]")
sys.exit()

with Image.open(sys.argv[1]) as im:
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/SpiderImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def _save_spider(im, fp, filename):
if __name__ == "__main__":

if len(sys.argv) < 2:
print("Syntax: python SpiderImagePlugin.py [infile] [outfile]")
print("Syntax: python3 SpiderImagePlugin.py [infile] [outfile]")
sys.exit()

filename = sys.argv[1]
Expand Down
2 changes: 1 addition & 1 deletion src/PIL/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def get_supported():
def pilinfo(out=None, supported_formats=True):
"""
Prints information about this installation of Pillow.
This function can be called with ``python -m PIL``.
This function can be called with ``python3 -m PIL``.
:param out:
The output stream to print to. Defaults to ``sys.stdout`` if ``None``.
Expand Down

0 comments on commit 2a94728

Please sign in to comment.