jenkins-bot merged this change.
[cleanup] Cleanup sysopnames in config2.py
config.sysopnames is deprecated since 6f0cafd
- documentation about sysopnames
- move sysopnames to obsolete section
- do not assign families to sysopnames in register_family_file
Change-Id: I43ca15fdb9db60fb65d81354931e80548499fc2a
---
M pywikibot/config2.py
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/pywikibot/config2.py b/pywikibot/config2.py
index 69972e3..08de9c4 100644
--- a/pywikibot/config2.py
+++ b/pywikibot/config2.py
@@ -33,7 +33,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.
#
@@ -137,18 +137,7 @@
# usernames['wikibooks']['*'] = 'mySingleUsername'
# You may use '*' for family name in a similar manner.
#
-# If you have a sysop account on some wikis, this will be used to delete pages
-# or to edit locked pages if you add such lines to your
-# user-config.py:
-#
-# sysopnames['wikipedia']['de'] = 'myGermanUsername'
-# sysopnames['wiktionary']['en'] = 'myEnglishUsername'
-#
-# If you have a unique syop account for all languages of a family,
-# you can use '*'
-# sysopnames['myownwiki']['*'] = 'mySingleUsername'
usernames = collections.defaultdict(dict)
-sysopnames = collections.defaultdict(dict)
disambiguation_comment = collections.defaultdict(dict)
# User agent format.
@@ -410,7 +399,6 @@
family.AutoFamily function is used when the url is given.
"""
usernames[family_name] = {}
- sysopnames[family_name] = {}
disambiguation_comment[family_name] = {}
family_files[family_name] = file_path
@@ -931,6 +919,7 @@
}
special_page_limit = 500
+sysopnames = collections.defaultdict(dict)
# #############################################
To view, visit change 563974. To unsubscribe, or for help writing mail filters, visit settings.