]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix documentation to include possible Exception (#94818)
authorGuy Yagev <yourlefthandman8@gmail.com>
Mon, 18 Jul 2022 19:31:17 +0000 (22:31 +0300)
committerGitHub <noreply@github.com>
Mon, 18 Jul 2022 19:31:17 +0000 (15:31 -0400)
Doc/library/datetime.rst

index ef1535c84bd5adb279e392706d17daef71a104a9..710f83c72e28533cdc13eae059c52cd70223c744 100644 (file)
@@ -1370,8 +1370,8 @@ Instance methods:
    time and this method relies on the platform C :c:func:`mktime`
    function to perform the conversion. Since :class:`.datetime`
    supports wider range of values than :c:func:`mktime` on many
-   platforms, this method may raise :exc:`OverflowError` for times far
-   in the past or far in the future.
+   platforms, this method may raise :exc:`OverflowError` or :exc:`OSError`
+   for times far in the past or far in the future.
 
    For aware :class:`.datetime` instances, the return value is computed
    as::