jenkins-bot merged this change.
[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(-)
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:
To view, visit change 553855. To unsubscribe, or for help writing mail filters, visit settings.