We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d753a61 commit 10115d4Copy full SHA for 10115d4
Lib/_strptime.py
@@ -452,8 +452,8 @@ def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
452
_regex_cache[format] = format_regex
453
found = format_regex.match(data_string)
454
if not found:
455
- raise ValueError("time data %r does not match format %r :: /%s/" %
456
- (data_string, format, format_regex.pattern))
+ raise ValueError("time data %r does not match format %r" %
+ (data_string, format))
457
if len(data_string) != found.end():
458
raise ValueError("unconverted data remains: %s" %
459
data_string[found.end():])
0 commit comments