Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a565874

Browse files
committed
Use _datetime docstring if _datetime is available.
1 parent cf86e36 commit a565874

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/datetime.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,3 +2085,8 @@ def _name_from_offset(delta):
20852085
_days_before_year, _days_in_month, _format_time, _is_leap,
20862086
_isoweek1monday, _math, _ord2ymd, _time, _time_class, _tzinfo_class,
20872087
_wrap_strftime, _ymd2ord)
2088+
# XXX Since import * above excludes names that start with _,
2089+
# docstring does not get overwritten. In the future, it may be
2090+
# appropriate to maintain a single module level docstring and
2091+
# remove the following line.
2092+
from _datetime import __doc__

0 commit comments

Comments
 (0)