Document exception [ci skip]

This commit is contained in:
Andrew Murray 2020-08-05 18:45:23 +10:00 committed by nulano
parent 30c4945d9c
commit 1c85b9fec7

View File

@ -2862,6 +2862,7 @@ def open(fp, mode="r", formats=None):
identified.
:exception ValueError: If the ``mode`` is not "r", or if a ``StringIO``
instance is used for ``fp``.
:exception TypeError: If ``formats`` is not ``None``, a list or a tuple.
"""
if mode != "r":