Skip to content

Commit

Permalink
Merge "Access match object by name"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jan 20, 2023
2 parents 72c9a9b + 0b2d29d commit 26ec218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywikibot/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def _from_iso8601(cls: Type['Timestamp'], timestr: str) -> 'Timestamp':
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']:
Expand Down

0 comments on commit 26ec218

Please sign in to comment.