diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2024-09-09 02:39:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 02:39:23 (GMT) |
commit | 93b61bc1245fb318a11d3d1a0808174b3c1bc333 (patch) | |
tree | 72ed7f598faf4e3b46d57a72e619d105df946cad | |
parent | aa3f11f80a644dac7184e8546ddfcc9b68be364c (diff) | |
download | cpython-93b61bc1245fb318a11d3d1a0808174b3c1bc333.zip cpython-93b61bc1245fb318a11d3d1a0808174b3c1bc333.tar.gz cpython-93b61bc1245fb318a11d3d1a0808174b3c1bc333.tar.bz2 |
gh-123843: Remove broken links to the Zope DateTimeWiki (#123846)
Co-authored-by: Conrad Bhuiyan-Volkoff <hi@cbv.im>
-rw-r--r-- | Lib/_pydatetime.py | 6 | ||||
-rw-r--r-- | Lib/datetime.py | 8 | ||||
-rw-r--r-- | Lib/test/datetimetester.py | 5 | ||||
-rw-r--r-- | Modules/_datetimemodule.c | 6 |
4 files changed, 10 insertions, 15 deletions
diff --git a/Lib/_pydatetime.py b/Lib/_pydatetime.py index 78432d4..f8e121e 100644 --- a/Lib/_pydatetime.py +++ b/Lib/_pydatetime.py @@ -1,8 +1,4 @@ -"""Concrete date/time and related types. - -See http://www.iana.org/time-zones/repository/tz-link.html for -time zone and DST data sources. -""" +"""Pure Python implementation of the datetime module.""" __all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo", "MINYEAR", "MAXYEAR", "UTC") diff --git a/Lib/datetime.py b/Lib/datetime.py index b4f7bd0..14f3055 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -1,9 +1,13 @@ +"""Specific date/time and related types. + +See https://data.iana.org/time-zones/tz-link.html for +time zone and DST data sources. +""" + try: from _datetime import * - from _datetime import __doc__ # noqa: F401 except ImportError: from _pydatetime import * - from _pydatetime import __doc__ # noqa: F401 __all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo", "MINYEAR", "MAXYEAR", "UTC") diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py index 0265643..aef24e1 100644 --- a/Lib/test/datetimetester.py +++ b/Lib/test/datetimetester.py @@ -1,7 +1,4 @@ -"""Test date/time type. - -See https://www.zope.dev/Members/fdrake/DateTimeWiki/TestCases -""" +"""Test the datetime module.""" import bisect import copy import decimal diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index f6e6ba4..8562e0c 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -1,6 +1,4 @@ -/* C implementation for the date/time type documented at - * https://www.zope.dev/Members/fdrake/DateTimeWiki/FrontPage - */ +/* C implementation of the datetime module */ /* bpo-35081: Defining this prevents including the C API capsule; * internal versions of the Py*_Check macros which do not require @@ -7418,7 +7416,7 @@ module_free(void *mod) static PyModuleDef datetimemodule = { .m_base = PyModuleDef_HEAD_INIT, .m_name = "_datetime", - .m_doc = "Fast implementation of the datetime type.", + .m_doc = "Fast implementation of the datetime module.", .m_size = sizeof(datetime_state), .m_methods = module_methods, .m_slots = module_slots, |