jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/553855 )
Change subject: [bugfix] Evaluate LoginStatus object ......................................................................
[bugfix] Evaluate LoginStatus object
With Id92f646 the repr of the LoginStatus object has been changed to a printable representation which can be directly evaluated to the object according to the Python doc.
Bug: T239533 Change-Id: I58115dd7e25b09e994949e724332f3f62156ae7e --- M scripts/maintenance/cache.py 1 file changed, 1 insertion(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/maintenance/cache.py b/scripts/maintenance/cache.py index a83f10e..7e5ea68 100755 --- a/scripts/maintenance/cache.py +++ b/scripts/maintenance/cache.py @@ -204,8 +204,7 @@ raise ParseError('No Site') self.site = eval(site) if login_status: - self.site._loginstatus = eval('LoginStatus.%s' - % login_status[12:-1]) + self.site._loginstatus = eval(login_status) if username: self.site._username = [username, username] if not params:
pywikibot-commits@lists.wikimedia.org