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']:

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/881415
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I604964e4fa0d3885cd511308658cdc255f2a3582
Gerrit-Change-Number: 881415
Gerrit-PatchSet: 2
Gerrit-Owner: Ayush Anand33 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to