Merge pull request #1374 from radarhere/flake

Flake8 fix
This commit is contained in:
Hugo van Kemenade 2015-08-06 13:05:43 +03:00
commit 63213db338

View File

@ -2268,8 +2268,9 @@ def open(fp, mode="r"):
:py:func:`~PIL.Image.new`. :py:func:`~PIL.Image.new`.
:param fp: A filename (string), pathlib.Path object or a file object. :param fp: A filename (string), pathlib.Path object or a file object.
The file object must implement :py:meth:`~file.read`, :py:meth:`~file.seek`, The file object must implement :py:meth:`~file.read`,
and :py:meth:`~file.tell` methods, and be opened in binary mode. :py:meth:`~file.seek`, and :py:meth:`~file.tell` methods,
and be opened in binary mode.
:param mode: The mode. If given, this argument must be "r". :param mode: The mode. If given, this argument must be "r".
:returns: An :py:class:`~PIL.Image.Image` object. :returns: An :py:class:`~PIL.Image.Image` object.
:exception IOError: If the file cannot be found, or the image cannot be :exception IOError: If the file cannot be found, or the image cannot be