]> granicus.if.org Git - python/commitdiff
Use _datetime docstring if _datetime is available.
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 23 Jul 2010 20:03:53 +0000 (20:03 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Fri, 23 Jul 2010 20:03:53 +0000 (20:03 +0000)
Lib/datetime.py

index 7b7b8aa65e9d9e362acd68da06983553f5681b9d..19f20e7cf2f635cd3f1d348c00f351a375171611 100644 (file)
@@ -2085,3 +2085,8 @@ else:
          _days_before_year, _days_in_month, _format_time, _is_leap,
          _isoweek1monday, _math, _ord2ymd, _time, _time_class, _tzinfo_class,
          _wrap_strftime, _ymd2ord)
+    # XXX Since import * above excludes names that start with _,
+    # docstring does not get overwritten. In the future, it may be
+    # appropriate to maintain a single module level docstring and
+    # remove the following line.
+    from _datetime import __doc__