Skip to content

Commit fc0dc92

Browse files
Fix documentation to include possible Exception (#94818)
1 parent a25a803 commit fc0dc92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/datetime.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,8 +1370,8 @@ Instance methods:
13701370
time and this method relies on the platform C :c:func:`mktime`
13711371
function to perform the conversion. Since :class:`.datetime`
13721372
supports wider range of values than :c:func:`mktime` on many
1373-
platforms, this method may raise :exc:`OverflowError` for times far
1374-
in the past or far in the future.
1373+
platforms, this method may raise :exc:`OverflowError` or :exc:`OSError`
1374+
for times far in the past or far in the future.
13751375

13761376
For aware :class:`.datetime` instances, the return value is computed
13771377
as::

0 commit comments

Comments
 (0)