diff options
author | shadchin <[email protected]> | 2023-10-03 23:32:21 +0300 |
---|---|---|
committer | shadchin <[email protected]> | 2023-10-03 23:48:51 +0300 |
commit | 01ffd024041ac933854c367fb8d1b5682d19883f (patch) | |
tree | b70aa497ba132a133ccece49f7763427dcd0743f /contrib/tools/python3/src/Lib/datetime.py | |
parent | a33fdb9a34581fd124e92535153b1f1fdeca6aaf (diff) |
Update Python 3 to 3.11.6
Diffstat (limited to 'contrib/tools/python3/src/Lib/datetime.py')
-rw-r--r-- | contrib/tools/python3/src/Lib/datetime.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/contrib/tools/python3/src/Lib/datetime.py b/contrib/tools/python3/src/Lib/datetime.py index c3c2568f986..474b4e9ae53 100644 --- a/contrib/tools/python3/src/Lib/datetime.py +++ b/contrib/tools/python3/src/Lib/datetime.py @@ -1002,13 +1002,9 @@ class date: def __repr__(self): """Convert to formal string, for repr(). - >>> dt = datetime(2010, 1, 1) - >>> repr(dt) - 'datetime.datetime(2010, 1, 1, 0, 0)' - - >>> dt = datetime(2010, 1, 1, tzinfo=timezone.utc) - >>> repr(dt) - 'datetime.datetime(2010, 1, 1, 0, 0, tzinfo=datetime.timezone.utc)' + >>> d = date(2010, 1, 1) + >>> repr(d) + 'datetime.date(2010, 1, 1)' """ return "%s.%s(%d, %d, %d)" % (self.__class__.__module__, self.__class__.__qualname__, @@ -1223,7 +1219,7 @@ date.resolution = timedelta(days=1) class tzinfo: """Abstract base class for time zone info classes. - Subclasses must override the name(), utcoffset() and dst() methods. + Subclasses must override the tzname(), utcoffset() and dst() methods. """ __slots__ = () |