mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
bpo-41260: C impl of datetime.date.strftime() takes different keyword arg (GH-21712)
This commit is contained in:
parent
3a803bcaac
commit
b1dcdefc3a
3 changed files with 7 additions and 2 deletions
|
@ -1032,13 +1032,13 @@ class date:
|
|||
_MONTHNAMES[self._month],
|
||||
self._day, self._year)
|
||||
|
||||
def strftime(self, fmt):
|
||||
def strftime(self, format):
|
||||
"""
|
||||
Format using strftime().
|
||||
|
||||
Example: "%d/%m/%Y, %H:%M:%S"
|
||||
"""
|
||||
return _wrap_strftime(self, fmt, self.timetuple())
|
||||
return _wrap_strftime(self, format, self.timetuple())
|
||||
|
||||
def __format__(self, fmt):
|
||||
if not isinstance(fmt, str):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue