jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] version: Use same time for the date and time ......................................................................
[FIX] version: Use same time for the date and time
With 5654d3ce the date (and time) returned for undetermined installations is a datetime object and no time struct. This now converts the datetime object into a time structs.
Bug: T95314 Change-Id: I0177fa63218ffb9dd957f8c4219766d4cad10656 --- M pywikibot/version.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: John Vandenberg: Looks good to me, approved XZise: Looks good to me, but someone else must approve jenkins-bot: Verified
diff --git a/pywikibot/version.py b/pywikibot/version.py index 5063908..51a536f 100644 --- a/pywikibot/version.py +++ b/pywikibot/version.py @@ -72,7 +72,7 @@ except Exception: try: hsh = get_module_version(pywikibot) - date = get_module_mtime(pywikibot) + date = get_module_mtime(pywikibot).timetuple()
tag = 'pywikibot/__init__.py' rev = '-1 (unknown)'
pywikibot-commits@lists.wikimedia.org