jenkins-bot submitted this change.

View Change


Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
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.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I604964e4fa0d3885cd511308658cdc255f2a3582
Gerrit-Change-Number: 881415
Gerrit-PatchSet: 2
Gerrit-Owner: Ayush Anand33 <ayushanand_mc21a11_34@dtu.ac.in>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged