mirror of https://github.com/python/cpython
Fix typos in `Weekday.today` example (GH-27363)
This commit is contained in:
parent
a2c45e5bcf
commit
6c7ec7282b
|
@ -273,7 +273,7 @@ Data Types
|
|||
... SUNDAY = 7
|
||||
... @classmethod
|
||||
... def today(cls):
|
||||
... print('today is %s' % cls(date.today.isoweekday).naem)
|
||||
... print('today is %s' % cls(date.today().isoweekday()).name)
|
||||
>>> dir(Weekday.SATURDAY)
|
||||
['__class__', '__doc__', '__module__', 'name', 'today', 'value']
|
||||
|
||||
|
|
Loading…
Reference in New Issue