jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/964148 )
Change subject: [cleanup] remove old Python 3.5 code ......................................................................
[cleanup] remove old Python 3.5 code
Change-Id: I58ffe35652189bda0ffb9ed469eaf354b59e8918 --- M pywikibot/bot.py 1 file changed, 12 insertions(+), 10 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py index 2d788ba..d364f6a 100644 --- a/pywikibot/bot.py +++ b/pywikibot/bot.py @@ -173,11 +173,7 @@ warning, ) from pywikibot.throttle import Throttle -from pywikibot.tools import ( - PYTHON_VERSION, - issue_deprecation_warning, - strtobool, -) +from pywikibot.tools import issue_deprecation_warning, strtobool from pywikibot.tools._logging import LoggingFormatter
@@ -525,11 +521,8 @@ if not filename: continue
- param = {'sep': ' '} - if PYTHON_VERSION >= (3, 6, 0): - param['timespec'] = 'seconds' - mtime = version.get_module_mtime(module).isoformat(**param) - + mtime = version.get_module_mtime(module).isoformat(sep=' ', + timespec='seconds') log(f' {mtime} {filename}')
if config.log_pywiki_repo_version:
pywikibot-commits@lists.wikimedia.org