[Python-checkins] r83115 - python/branches/py3k/Lib/datetime.py

alexander.belopolsky python-checkins at python.org
Fri Jul 23 22:03:53 CEST 2010


Author: alexander.belopolsky
Date: Fri Jul 23 22:03:53 2010
New Revision: 83115

Log:
Use _datetime docstring if _datetime is available.

Modified:
   python/branches/py3k/Lib/datetime.py

Modified: python/branches/py3k/Lib/datetime.py
==============================================================================
--- python/branches/py3k/Lib/datetime.py	(original)
+++ python/branches/py3k/Lib/datetime.py	Fri Jul 23 22:03:53 2010
@@ -2085,3 +2085,8 @@
          _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__


More information about the Python-checkins mailing list