jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/563794 )

Change subject: [cleanup] Remove -sysop option which isn't supported anymore
......................................................................

[cleanup] Remove -sysop option which isn't supported anymore

Change-Id: Ife0b0c2d1f48f44b4b625ce8c070ed45d3509eba
---
M scripts/login.py
1 file changed, 5 insertions(+), 13 deletions(-)

Approvals:
  Huji: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/scripts/login.py b/scripts/login.py
index 2328206..cfabfb6 100755
--- a/scripts/login.py
+++ b/scripts/login.py
@@ -33,11 +33,9 @@
                 where others have either physical or remote access.
                 Use -pass instead.

-   -sysop       Log in with your sysop account.
-
    -oauth       Generate OAuth authentication information.
                 NOTE: Need to copy OAuth tokens to your user-config.py
-                manually. -logout, -pass, -force, -pass:XXXX and -sysop are not
+                manually. -logout, -pass, -force and -pass:XXXX are not
                 compatible with -oauth.

    -autocreate  Auto-create an account using unified login when necessary.
@@ -56,7 +54,7 @@
 """
 #
 # (C) Rob W.W. Hooft, 2003
-# (C) Pywikibot team, 2003-2019
+# (C) Pywikibot team, 2003-2020
 #
 # Distributed under the terms of the MIT license.
 #
@@ -100,7 +98,7 @@
         pywikibot.output('Logged in on %(site)s as %(username)s'
                          'via OAuth consumer %(consumer)s'
                          % {'site': site,
-                            'username': site.username(sysop=False),
+                            'username': site.username(),
                             'consumer': consumer_key})
         pywikibot.output('NOTE: To use OAuth, you need to copy the '
                          'following line to your user-config.py:')
@@ -119,7 +117,6 @@
     @type args: str
     """
     password = None
-    sysop = False
     logall = False
     logout = False
     oauth = False
@@ -133,8 +130,6 @@
                     password=True)
             else:
                 password = arg[6:]
-        elif arg == '-sysop':
-            sysop = True
         elif arg == '-all':
             logall = True
         elif arg == '-force':
@@ -159,10 +154,7 @@
                           'https://phabricator.wikimedia.org/T102477')

     if logall:
-        if sysop and not oauth:
-            namedict = config.sysopnames
-        else:
-            namedict = config.usernames
+        namedict = config.usernames
     else:
         site = pywikibot.Site()
         namedict = {site.family.name: {site.code: None}}
@@ -176,7 +168,7 @@
                 if logout:
                     site.logout()
                 else:
-                    site.login(sysop, autocreate=autocreate)
+                    site.login(autocreate=autocreate)
                 user = site.user()
                 if user:
                     pywikibot.output(

--
To view, visit https://gerrit.wikimedia.org/r/563794
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ife0b0c2d1f48f44b4b625ce8c070ed45d3509eba
Gerrit-Change-Number: 563794
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: D3r1ck01 <[email protected]>
Gerrit-Reviewer: Huji <[email protected]>
Gerrit-Reviewer: jenkins-bot (75)
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to