Skip to content

Commit

Permalink
Merge "version.py: Remove line endings in getversion_nightly"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed May 3, 2024
2 parents 322afa6 + 2b32587 commit 1db7441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pywikibot/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def getversion_nightly(path: str | Path | None = None):
file /= 'version'

with file.open() as data:
(tag, rev, date, hsh) = data.readlines()
(tag, rev, date, hsh) = data.read().splitlines()

date = time.strptime(date[:19], '%Y-%m-%dT%H:%M:%S')

Expand Down

0 comments on commit 1db7441

Please sign in to comment.