The message for the exception when time.strptime was passed something other
than str did not output the type of the argument but the object itself.
diff --git a/Lib/_strptime.py b/Lib/_strptime.py
index 9ff29bc..ee30b42 100644
--- a/Lib/_strptime.py
+++ b/Lib/_strptime.py
@@ -298,7 +298,7 @@
for index, arg in enumerate([data_string, format]):
if not isinstance(arg, str):
msg = "strptime() argument {} must be str, not {}"
- raise TypeError(msg.format(arg, index))
+ raise TypeError(msg.format(index, type(arg)))
global _TimeRE_cache, _regex_cache
with _cache_lock: