jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/505456 )
Change subject: [cleanup] Remove wikiapiary from family_file dictionary ......................................................................
[cleanup] Remove wikiapiary from family_file dictionary
- wikiapiary.com is no longer available and was never used for tests. Remove their registration; see https://meta.wikimedia.org/wiki/Interwiki_map - Update doc string for register_family_file.
Change-Id: Idc5bfceb08763b7023000d49587b4d91520b5a46 --- M pywikibot/config2.py 1 file changed, 5 insertions(+), 2 deletions(-)
Approvals: Dvorapa: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/config2.py b/pywikibot/config2.py index 78afa27..e155e60 100644 --- a/pywikibot/config2.py +++ b/pywikibot/config2.py @@ -399,7 +399,11 @@
def register_family_file(family_name, file_path): - """Register a single family class file.""" + """Register a single family class file. + + Parameter file_path may be a path or an url. + family.AutoFamily function is used when the url is given. + """ usernames[family_name] = {} sysopnames[family_name] = {} disambiguation_comment[family_name] = {} @@ -418,7 +422,6 @@ # Get the names of all known families, and initialize with empty dictionaries. # ‘families/’ is a subdirectory of the directory in which config2.py is found. register_families_folder(os.path.join(os.path.dirname(__file__), 'families')) -register_family_file('wikiapiary', 'https://wikiapiary.com')
# Set to True to override the {{bots}} exclusion protocol (at your own risk!) ignore_bot_templates = False
pywikibot-commits@lists.wikimedia.org