diff options
author | Zackery Spytz <zspytz@gmail.com> | 2022-11-25 01:21:25 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-25 09:21:25 +0000 |
commit | b1dcdefc3abf496a3e37e12b85dd9959f5b70341 (patch) | |
tree | 57d054b5d54d13d87afcb2b0e04258c95da513d6 /Lib/datetime.py | |
parent | 3a803bcaacece466e9c137fb4a3c6389780377d6 (diff) | |
download | cpython-git-b1dcdefc3abf496a3e37e12b85dd9959f5b70341.tar.gz |
bpo-41260: C impl of datetime.date.strftime() takes different keyword arg (GH-21712)
Diffstat (limited to 'Lib/datetime.py')
-rw-r--r-- | Lib/datetime.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/datetime.py b/Lib/datetime.py index 01742680a9..1b0c5cb2d1 100644 --- a/Lib/datetime.py +++ b/Lib/datetime.py @@ -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): |