jenkins-bot submitted this change.
Access match object by name
Bug: T308261
Change-Id: I604964e4fa0d3885cd511308658cdc255f2a3582
---
M pywikibot/time.py
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/pywikibot/time.py b/pywikibot/time.py
index 656b5f4..da10ecb 100644
--- a/pywikibot/time.py
+++ b/pywikibot/time.py
@@ -143,7 +143,7 @@
raise ValueError(
f'time data {timestr!r} does not match ISO8601 format.')
- strpfmt = '%Y-%m-%d{sep}%H:%M:%S'.format(sep=m.group('sep'))
+ strpfmt = f'%Y-%m-%d{m["sep"]}%H:%M:%S'
strpstr = timestr[:19]
if m['u']:
To view, visit change 881415. To unsubscribe, or for help writing mail filters, visit settings.