Hi.
Seems your mylang assignment must be:
mylang = 'fancyclopedia'
This creates Site('fancyclopedia', 'fancyclopedia')
as default.
Best
xqt
> Am 21.05.2020 um 18:14 schrieb AntiCompositeNumber
> <[email protected]>:
>
> Can you link to the site you are using, and provide the Pywikibot
> family configuration?
>
> AntiCompositeNumber
>
>> On Thu, May 21, 2020 at 11:29 AM John Bray <[email protected]> wrote:
>>
>> How do I get rid of the listpages warning
>>
>> WARNING: /home/fancyclopedia/pywikibot/core/pywikibot/pagegenerators.py:467:
>> UserWarning: Site fancyclopedia:fancyclopedia instantiated using
>> different code "en"
>> self._site = pywikibot.Site()
>>
>> user-config.py has
>>
>> mylang = 'en'
>>
>> LocalSettings.php has
>>
>> $wgLanguageCode = "en";
>>
>> Thanks
>>
>> John
>>
>> _______________________________________________
>> pywikibot mailing list
>> [email protected]
>> https://lists.wikimedia.org/mailman/listinfo/pywikibot
>
> _______________________________________________
> pywikibot mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikibot
_______________________________________________
pywikibot mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot