_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):
#check that this standard extension works
t.strftime("%f")
+ # bpo-41260: The parameter was named "fmt" in the pure python impl.
+ t.strftime(format="%f")
+
def test_strftime_trailing_percent(self):
# bpo-35066: Make sure trailing '%' doesn't cause datetime's strftime to
# complain. Different libcs have different handling of trailing