mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00

Without the change to the reprs, pure-python classes would have a repr of `datetime._pydatetime.time`, etc.
9 lines
261 B
Python
9 lines
261 B
Python
try:
|
|
from _datetime import *
|
|
from _datetime import __doc__
|
|
except ImportError:
|
|
from _pydatetime import *
|
|
from _pydatetime import __doc__
|
|
|
|
__all__ = ("date", "datetime", "time", "timedelta", "timezone", "tzinfo",
|
|
"MINYEAR", "MAXYEAR")
|