Skip to content

Commit

Permalink
pythongh-123843: Remove broken links to the Zope DateTimeWiki (python…
Browse files Browse the repository at this point in the history
…#123846)

Co-authored-by: Conrad Bhuiyan-Volkoff <[email protected]>
  • Loading branch information
AA-Turner and otkd authored Sep 9, 2024
1 parent aa3f11f commit 93b61bc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
6 changes: 1 addition & 5 deletions Lib/_pydatetime.py
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
8 changes: 6 additions & 2 deletions Lib/datetime.py
Original file line number Diff line number Diff line change
@@ -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")
5 changes: 1 addition & 4 deletions Lib/test/datetimetester.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 2 additions & 4 deletions Modules/_datetimemodule.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 93b61bc

Please sign in to comment.