jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/881415 )
Change subject: Access match object by name ......................................................................
Access match object by name
Bug: T308261 Change-Id: I604964e4fa0d3885cd511308658cdc255f2a3582 --- M pywikibot/time.py 1 file changed, 11 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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']:
pywikibot-commits@lists.wikimedia.org