Xqt added a comment.
> What should have happened instead?:
>
> - should list possible languages
There is a difference between site code and it's language. Pywikibot uses the
site code and family name to determine a site, e.g. commons has the family name
"commons" and the site codes "commons", "beta" and "test" for 3 valid sites.
All of them has "en" as their language, for example:
>>> import pywikibot
>>> site = pywikibot.Site('commons:beta')
>>> site.code
'beta'
>>> site.lang
'en'
TASK DETAIL
https://phabricator.wikimedia.org/T291667
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Xqt, Aklapper, pywikibot-bugs-list, ZyMOS, Suran38, Biggs657, Lalamarie69,
Jyoo1011, JohnsonLee01, Juan90264, SHEKH, Dijkstra, Alter-paule, Beast1978,
Un1tY, Khutuck, Zkhalido, Hook696, Kent7301, joker88john, Viztor, CucyNoiD,
Wenyi, Gaboe420, Giuliamocci, Cpaulf30, Af420, Bsandipan, Tbscho, MayS,
Lewizho99, Mdupont, JJMC89, Maathavan, Dvorapa, Altostratus, Avicennasis,
mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]