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

Change subject: [cleanup] Cleanup sysop names in version.py
......................................................................

[cleanup] Cleanup sysop names in version.py

config.sysopnames is deprecated since 6f0cafd
Don't show sysop information with version.py anymore.

Change-Id: I32d91507259f45097817678fefcff40cbde47f2f
---
M scripts/version.py
1 file changed, 7 insertions(+), 13 deletions(-)

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



diff --git a/scripts/version.py b/scripts/version.py
index 6473371..f76a895 100755
--- a/scripts/version.py
+++ b/scripts/version.py
@@ -3,8 +3,8 @@
 """Script to determine the Pywikibot version (tag, revision and date)."""
 #
 # (C) Merlijn 'valhallasw' van Deen, 2007-2008
-# (C) xqt, 2010-2018
-# (C) Pywikibot team, 2007-2018
+# (C) xqt, 2010-2020
+# (C) Pywikibot team, 2007-2020
 #
 # Distributed under the terms of the MIT license.
 #
@@ -76,17 +76,11 @@
     check_environ('PYWIKIBOT_NO_USER_CONFIG')
     pywikibot.output('Config base dir: ' + pywikibot.config2.base_dir)
     for family, usernames in pywikibot.config2.usernames.items():
-        if usernames:
-            pywikibot.output('Usernames for family "{0}":'.format(family))
-            for lang, username in usernames.items():
-                sysop_name = pywikibot.config2.sysopnames.get(family,
-                                                              {}).get(lang)
-                if not sysop_name:
-                    sysop_name = 'no sysop configured'
-                elif sysop_name == username:
-                    sysop_name = 'also sysop'
-                pywikibot.output('\t{0}: {1} ({2})'.format(lang, username,
-                                                           sysop_name))
+        if not usernames:
+            continue
+        pywikibot.output('Usernames for family "{0}":'.format(family))
+        for lang, username in usernames.items():
+            pywikibot.output('\t{0}: {1}'.format(lang, username))


 if __name__ == '__main__':

--
To view, visit https://gerrit.wikimedia.org/r/563970
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: I32d91507259f45097817678fefcff40cbde47f2f
Gerrit-Change-Number: 563970
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