jenkins-bot has submitted this change and it was merged.
Change subject: pep257 in pywikibot/families ......................................................................
pep257 in pywikibot/families
Change-Id: Iaeb7761baf6f8440f2113d3e688b5c83fc50c6f2 --- M pywikibot/families/__init__.py M pywikibot/families/anarchopedia_family.py M pywikibot/families/battlestarwiki_family.py M pywikibot/families/commons_family.py M pywikibot/families/i18n_family.py M pywikibot/families/incubator_family.py M pywikibot/families/lockwiki_family.py M pywikibot/families/lyricwiki_family.py M pywikibot/families/mediawiki_family.py M pywikibot/families/meta_family.py M pywikibot/families/omegawiki_family.py M pywikibot/families/osm_family.py M pywikibot/families/outreach_family.py M pywikibot/families/species_family.py M pywikibot/families/strategy_family.py M pywikibot/families/vikidia_family.py M pywikibot/families/wikia_family.py M pywikibot/families/wikibooks_family.py M pywikibot/families/wikidata_family.py M pywikibot/families/wikimedia_family.py M pywikibot/families/wikinews_family.py M pywikibot/families/wikipedia_family.py M pywikibot/families/wikiquote_family.py M pywikibot/families/wikisource_family.py M pywikibot/families/wikitech_family.py M pywikibot/families/wikiversity_family.py M pywikibot/families/wikivoyage_family.py M pywikibot/families/wiktionary_family.py M pywikibot/families/wowwiki_family.py 29 files changed, 188 insertions(+), 11 deletions(-)
Approvals: Ladsgroup: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/families/__init__.py b/pywikibot/families/__init__.py index 5041b19..e1d916b 100644 --- a/pywikibot/families/__init__.py +++ b/pywikibot/families/__init__.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Families package.""" # # (C) Pywikibot team, 2007 # diff --git a/pywikibot/families/anarchopedia_family.py b/pywikibot/families/anarchopedia_family.py index 5929098..42f4a96 100644 --- a/pywikibot/families/anarchopedia_family.py +++ b/pywikibot/families/anarchopedia_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Anarchopedia wiki.""" + __version__ = '$Id$'
from pywikibot import family @@ -6,7 +8,11 @@
# The Anarchopedia family class Family(family.Family): + + """Family class for Anarchopedia wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'anarchopedia'
@@ -62,13 +68,17 @@ }
def version(self, code): + """Return the version for this family.""" return "1.14alpha"
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def path(self, code): + """Return the path to index.php for this family.""" return '/index.php'
def apipath(self, code): + """Return the path to api.php for this family.""" return '/api.php' diff --git a/pywikibot/families/battlestarwiki_family.py b/pywikibot/families/battlestarwiki_family.py index 8be7a43..44a9182 100644 --- a/pywikibot/families/battlestarwiki_family.py +++ b/pywikibot/families/battlestarwiki_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Battlestar Wiki.""" + __version__ = '$Id$'
from pywikibot import family @@ -7,7 +9,11 @@ # The Battlestar Wiki family, a set of Battlestar wikis. # http://battlestarwiki.org/ class Family(family.Family): + + """Family class for Battlestar Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'battlestarwiki'
@@ -17,7 +23,9 @@ self.langs[lang] = '%s.battlestarwiki.org' % lang
def hostname(self, code): + """Return the hostname for a site in this family.""" return '%s.battlestarwiki.org' % code
def version(self, code): + """Return the version for this family.""" return "1.16.4" diff --git a/pywikibot/families/commons_family.py b/pywikibot/families/commons_family.py index 39375c9..17e9d9b 100644 --- a/pywikibot/families/commons_family.py +++ b/pywikibot/families/commons_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia Commons."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The Wikimedia Commons family class Family(family.WikimediaFamily): + + """Family class for Wikimedia Commons.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'commons' self.langs = { @@ -41,4 +46,5 @@ }
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/pywikibot/families/i18n_family.py b/pywikibot/families/i18n_family.py index f1dea70..9a1047f 100644 --- a/pywikibot/families/i18n_family.py +++ b/pywikibot/families/i18n_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Translate Wiki."""
__version__ = '$Id$'
@@ -8,7 +9,10 @@ # The Wikimedia i18n family class Family(family.Family):
+ """Family class for Translate Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'i18n' self.langs = { @@ -16,4 +20,5 @@ }
def version(self, code): + """Return the version for this family.""" return "1.23alpha" diff --git a/pywikibot/families/incubator_family.py b/pywikibot/families/incubator_family.py index 11c9217..b57d386 100644 --- a/pywikibot/families/incubator_family.py +++ b/pywikibot/families/incubator_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Incubator Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The Wikimedia Incubator family class Family(family.WikimediaFamily): + + """Family class for Incubator Wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'incubator' self.langs = { diff --git a/pywikibot/families/lockwiki_family.py b/pywikibot/families/lockwiki_family.py index 97d06e7..3b30fba 100644 --- a/pywikibot/families/lockwiki_family.py +++ b/pywikibot/families/lockwiki_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Lock Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The locksmithwiki family class Family(family.Family): + + """Family class for Lock Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'lockwiki' self.langs = { @@ -15,10 +20,13 @@ }
def scriptpath(self, code): + """Return the script path for this family.""" return '/lockwiki'
def version(self, code): + """Return the version for this family.""" return '1.15.1'
def nicepath(self, code): + """Return the nice article path for this family.""" return "%s/" % self.path(self, code) diff --git a/pywikibot/families/lyricwiki_family.py b/pywikibot/families/lyricwiki_family.py index a4ec752..dc84ff4 100644 --- a/pywikibot/families/lyricwiki_family.py +++ b/pywikibot/families/lyricwiki_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for LyricWiki.""" + __version__ = '$Id$'
from pywikibot import family @@ -9,7 +11,11 @@ # user_config.py: # usernames['lyricwiki']['en'] = 'user' class Family(family.Family): + + """Family class for LyricWiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'lyricwiki' self.langs = { @@ -17,10 +23,13 @@ }
def version(self, code): + """Return the version for this family.""" return "1.19.18"
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def apipath(self, code): + """Return the path to api.php for this family.""" return '/api.php' diff --git a/pywikibot/families/mediawiki_family.py b/pywikibot/families/mediawiki_family.py index ca708d5..fe979b0 100644 --- a/pywikibot/families/mediawiki_family.py +++ b/pywikibot/families/mediawiki_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for MediaWiki wiki."""
__version__ = '$Id$'
@@ -8,7 +9,11 @@ # The MediaWiki family # user-config.py: usernames['mediawiki']['mediawiki'] = 'User name' class Family(family.WikimediaFamily): + + """Family module for MediaWiki wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'mediawiki'
diff --git a/pywikibot/families/meta_family.py b/pywikibot/families/meta_family.py index 27cbdb6..58f7de9 100644 --- a/pywikibot/families/meta_family.py +++ b/pywikibot/families/meta_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Meta Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The meta wikimedia family class Family(family.WikimediaFamily): + + """Family class for Meta Wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'meta' self.langs = { diff --git a/pywikibot/families/omegawiki_family.py b/pywikibot/families/omegawiki_family.py index 74e6cfd..aa234c5 100644 --- a/pywikibot/families/omegawiki_family.py +++ b/pywikibot/families/omegawiki_family.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- - +"""Family module for Omega Wiki.""" __version__ = '$Id$'
from pywikibot import family @@ -8,7 +8,10 @@ # Omegawiki, the Ultimate online dictionary class Family(family.Family):
+ """Family class for Omega Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'omegawiki' self.langs['omegawiki'] = 'www.omegawiki.org' @@ -19,16 +22,21 @@ self.nocapitalize = list(self.langs.keys())
def hostname(self, code): + """Return the hostname for this family.""" return 'www.omegawiki.org'
def version(self, code): + """Return the version for this family.""" return "1.22.6"
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def path(self, code): + """Return the path to index.php for this family.""" return '/index.php'
def apipath(self, code): + """Return the path to api.php for this family.""" return '/api.php' diff --git a/pywikibot/families/osm_family.py b/pywikibot/families/osm_family.py index 8da9070..fa878ae 100644 --- a/pywikibot/families/osm_family.py +++ b/pywikibot/families/osm_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for OpenStreetMap wiki."""
__version__ = '$Id$'
@@ -8,7 +9,10 @@ # The project wiki of OpenStreetMap (OSM). class Family(family.Family):
+ """Family class for OpenStreetMap wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'osm' self.langs = { @@ -16,4 +20,5 @@ }
def version(self, code): + """Return the version for this family.""" return "1.22.7" diff --git a/pywikibot/families/outreach_family.py b/pywikibot/families/outreach_family.py index 3e11284..318dbe3 100644 --- a/pywikibot/families/outreach_family.py +++ b/pywikibot/families/outreach_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia outreach wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# Outreach wiki custom family class Family(family.WikimediaFamily): + + """Family class for Wikimedia outreach wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = u'outreach' self.langs = { diff --git a/pywikibot/families/species_family.py b/pywikibot/families/species_family.py index e9c86d6..6a85925 100644 --- a/pywikibot/families/species_family.py +++ b/pywikibot/families/species_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia species wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The wikispecies family class Family(family.WikimediaFamily): + + """Family class for Wikimedia species wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'species' self.langs = { diff --git a/pywikibot/families/strategy_family.py b/pywikibot/families/strategy_family.py index 8ad960e..fc33e9c 100644 --- a/pywikibot/families/strategy_family.py +++ b/pywikibot/families/strategy_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia Strategy Wiki."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The Wikimedia Strategy family class Family(family.WikimediaFamily): + + """Family class for Wikimedia Strategy Wiki.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'strategy' self.langs = { @@ -16,4 +21,5 @@ self.interwiki_forward = 'wikipedia'
def dbName(self, code): + """Return the database name for this family.""" return 'strategywiki_p' diff --git a/pywikibot/families/vikidia_family.py b/pywikibot/families/vikidia_family.py index 49e2f2f..4428479 100644 --- a/pywikibot/families/vikidia_family.py +++ b/pywikibot/families/vikidia_family.py @@ -1,12 +1,16 @@ # -*- coding: utf-8 -*- - +"""Family module for Vikidia.""" __version__ = '$Id$'
from pywikibot import family
class Family(family.Family): + + """Family class for Vikidia.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'vikidia'
@@ -39,11 +43,11 @@
# Which version of MediaWiki is used? REQUIRED def version(self, code): - # Replace with the actual version being run on your wiki + """Return the version for this family.""" return '1.23.1'
def code2encoding(self, code): - """Return the encoding for a specific language wiki""" + """Return the encoding for a specific language wiki.""" # Most wikis nowadays use UTF-8, but change this if yours uses # a different encoding return 'utf-8' diff --git a/pywikibot/families/wikia_family.py b/pywikibot/families/wikia_family.py index 75a699f..3e02043 100644 --- a/pywikibot/families/wikia_family.py +++ b/pywikibot/families/wikia_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikia."""
__version__ = '$Id$'
@@ -8,7 +9,11 @@ # The Wikia Search family # user-config.py: usernames['wikia']['wikia'] = 'User name' class Family(family.Family): + + """Family class for Wikia.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = u'wikia'
@@ -17,13 +22,17 @@ }
def hostname(self, code): + """Return the hostname for every site in this family.""" return u'www.wikia.com'
def version(self, code): + """Return the version for this family.""" return "1.19.18"
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def apipath(self, code): + """Return the path to api.php for this family.""" return '/api.php' diff --git a/pywikibot/families/wikibooks_family.py b/pywikibot/families/wikibooks_family.py index 62b88ba..08c1848 100644 --- a/pywikibot/families/wikibooks_family.py +++ b/pywikibot/families/wikibooks_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wikibooks.""" + from pywikibot import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wikibooks class Family(family.WikimediaFamily): + + """Family class for Wikibooks.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikibooks'
diff --git a/pywikibot/families/wikidata_family.py b/pywikibot/families/wikidata_family.py index b5dde92..14e8c35 100644 --- a/pywikibot/families/wikidata_family.py +++ b/pywikibot/families/wikidata_family.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- - +"""Family module for Wikidata.""" __version__ = '$Id$'
from pywikibot import family @@ -8,7 +8,11 @@
class Family(family.WikimediaFamily): + + """Family class for Wikidata.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikidata' self.langs = { @@ -32,11 +36,11 @@ return (code, self.name)
def calendarmodel(self, code): - """Default calendar model for WbTime datatype""" + """Default calendar model for WbTime datatype.""" return 'http://www.wikidata.org/entity/Q1985727'
def globes(self, code): - """Supported globes for Coordinate datatype""" + """Supported globes for Coordinate datatype.""" return { 'ariel': 'http://www.wikidata.org/entity/Q3343', 'callisto': 'http://www.wikidata.org/entity/Q3134', diff --git a/pywikibot/families/wikimedia_family.py b/pywikibot/families/wikimedia_family.py index 48d6726..1bb9dea 100644 --- a/pywikibot/families/wikimedia_family.py +++ b/pywikibot/families/wikimedia_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikimedia chapter wikis."""
__version__ = '$Id$'
@@ -7,7 +8,11 @@
# The wikis of Chapters of the Wikimedia Foundation living at a xy.wikimedia.org url class Family(family.Family): + + """Family class for Wikimedia chapter wikis.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'wikimediachapter'
diff --git a/pywikibot/families/wikinews_family.py b/pywikibot/families/wikinews_family.py index 4f556e9..46f18b3 100644 --- a/pywikibot/families/wikinews_family.py +++ b/pywikibot/families/wikinews_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wikinews.""" + from pywikibot import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wikinews class Family(family.WikimediaFamily): + + """Family class for Wikinews.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikinews'
@@ -49,4 +55,5 @@ }
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py index 270b5c2..106203a 100644 --- a/pywikibot/families/wikipedia_family.py +++ b/pywikibot/families/wikipedia_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wikipedia.""" + from pywikibot import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wikipedia, the Free Encyclopedia class Family(family.WikimediaFamily): + + """Family module for Wikipedia.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikipedia'
@@ -530,6 +536,7 @@ }
def get_known_families(self, site): + """Override the family interwiki prefixes for each site.""" # In Swedish Wikipedia 's:' is part of page title not a family # prefix for 'wikisource'. if site.language() == 'sv': @@ -541,8 +548,7 @@ return self.known_families
def code2encodings(self, code): - """Return a list of historical encodings for a specific language - wikipedia""" + """Return a list of historical encodings for a specific site.""" # Historic compatibility if code == 'pl': return 'utf-8', 'iso8859-2' @@ -553,6 +559,7 @@ return self.code2encoding(code),
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" if code in ['test', 'test2']: return ('test', 'wikidata') else: diff --git a/pywikibot/families/wikiquote_family.py b/pywikibot/families/wikiquote_family.py index 7afa14f..2ec28f1 100644 --- a/pywikibot/families/wikiquote_family.py +++ b/pywikibot/families/wikiquote_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wikiquote.""" + from pywikibot import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wikiquote class Family(family.WikimediaFamily): + + """Family class for Wikiquote.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikiquote'
@@ -83,7 +89,9 @@
def code2encodings(self, code): """ - Return a list of historical encodings for a specific language wikipedia + Return a list of historical encodings for a specific language. + + @param code: site code """ # Historic compatibility if code == 'pl': @@ -93,4 +101,5 @@ return self.code2encoding(code),
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this family.""" return ('wikidata', 'wikidata') diff --git a/pywikibot/families/wikisource_family.py b/pywikibot/families/wikisource_family.py index de1b57a..f439795 100644 --- a/pywikibot/families/wikisource_family.py +++ b/pywikibot/families/wikisource_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikisource.""" from pywikibot import family
__version__ = '$Id$' @@ -6,7 +7,11 @@
# The Wikimedia family that is known as Wikisource class Family(family.WikimediaFamily): + + """Family class for Wikisource.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikisource'
@@ -92,4 +97,5 @@ self.crossnamespace[item].update({key: self.authornamespaces})
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/pywikibot/families/wikitech_family.py b/pywikibot/families/wikitech_family.py index bf739de..d406f42 100644 --- a/pywikibot/families/wikitech_family.py +++ b/pywikibot/families/wikitech_family.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- - +"""Family module for Wikitech.""" __version__ = '$Id$'
from pywikibot import family @@ -8,7 +8,10 @@ # The Wikitech family class Family(family.Family):
+ """Family class for Wikitech.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikitech' self.langs = { @@ -16,7 +19,9 @@ }
def version(self, code): + """Return the version for this family.""" return '1.21wmf8'
def protocol(self, code): + """Return the protocol for this family.""" return 'https' diff --git a/pywikibot/families/wikiversity_family.py b/pywikibot/families/wikiversity_family.py index 812da21..f954137 100644 --- a/pywikibot/families/wikiversity_family.py +++ b/pywikibot/families/wikiversity_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikiversity.""" from pywikibot import family
__version__ = '$Id$' @@ -6,7 +7,11 @@
# The Wikimedia family that is known as Wikiversity class Family(family.WikimediaFamily): + + """Family class for Wikiversity.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikiversity'
diff --git a/pywikibot/families/wikivoyage_family.py b/pywikibot/families/wikivoyage_family.py index 4f89641..980f868 100644 --- a/pywikibot/families/wikivoyage_family.py +++ b/pywikibot/families/wikivoyage_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for Wikivoyage."""
__version__ = '$Id$'
@@ -8,7 +9,11 @@
class Family(family.WikimediaFamily): + + """Family class for Wikivoyage.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wikivoyage' self.languages_by_size = [ @@ -22,4 +27,5 @@ self.cross_allowed = ['es', 'ru', ]
def shared_data_repository(self, code, transcluded=False): + """Return the shared data repository for this site.""" return ('wikidata', 'wikidata') diff --git a/pywikibot/families/wiktionary_family.py b/pywikibot/families/wiktionary_family.py index be8cd84..46a9ba8 100644 --- a/pywikibot/families/wiktionary_family.py +++ b/pywikibot/families/wiktionary_family.py @@ -1,4 +1,6 @@ # -*- coding: utf-8 -*- +"""Family module for Wiktionary.""" + from pywikibot import family
__version__ = '$Id$' @@ -6,7 +8,11 @@
# The Wikimedia family that is known as Wiktionary class Family(family.WikimediaFamily): + + """Family class for Wiktionary.""" + def __init__(self): + """Constructor.""" super(Family, self).__init__() self.name = 'wiktionary'
diff --git a/pywikibot/families/wowwiki_family.py b/pywikibot/families/wowwiki_family.py index 9cf7bad..abe5d9f 100644 --- a/pywikibot/families/wowwiki_family.py +++ b/pywikibot/families/wowwiki_family.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +"""Family module for WOW Wiki."""
__version__ = '$Id$'
@@ -6,7 +7,11 @@
class Family(family.Family): + + """Family class for WOW Wiki.""" + def __init__(self): + """Constructor.""" family.Family.__init__(self) self.name = 'wowwiki'
@@ -55,7 +60,9 @@ self.categories_last = ['cs', 'da', 'de', 'el', 'en', 'es', 'fa', 'fi', 'fr', 'he', 'hr', 'hu', 'is', 'it', 'ja', 'ko', 'lt', 'lv', 'nl', 'no', 'pl', 'pt', 'pt-br', 'ro', 'ru', 'sk', 'sr', 'sv', 'tr', 'zh-tw', 'zh']
def scriptpath(self, code): + """Return the script path for this family.""" return ''
def version(self, code): + """Return the version for this family.""" return '1.19.18'
pywikibot-commits@lists.wikimedia.org