>>> import pywikibot
>>> s = pywikibot.Site(fam='wikisource')
>>> x = s.get_known_families()
WARNING: <pyshell#9>:1: FutureWarning: pywikibot.family.Family.get_known_families is deprecated for 5 years; use APISite.interwiki instead.
WARNING: C:\pwb\GIT\core\pywikibot\family.py:753: FutureWarning: known_families is deprecated for 5 years and 6 months; use APISite.interwiki(prefix) instead.
return self.known_families
>>> s = pywikibot.Site(fam='wikipedia')
>>> x = s.get_known_families()
Traceback (most recent call last):
File "<pyshell#11>", line 1, in <module>
x = s.get_known_families()
File "C:\pwb\GIT\core\pywikibot\families\wikipedia_family.py", line 224, in get_known_families
if site.code == 'sv':
AttributeError: 'str' object has no attribute 'code'
>>>Description
Description
Details
Details
Related Changes in Gerrit:
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| [bugfix] Fix get_known_families() for wikipedia_family | pywikibot/core | master | +5 -5 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Change 639088 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [bugfix] Fix get_known_families() for wikipedia_family
Comment Actions
Change 639088 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Fix get_known_families() for wikipedia_family