Fix documentation to include possible Exception (#94818)

This commit is contained in:
Guy Yagev 2022-07-18 22:31:17 +03:00 committed by GitHub
parent a25a803c4c
commit fc0dc9203d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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