jenkins-bot has submitted this change and it was merged.
Change subject: [IMPROV] Consistent usage of 'force'
......................................................................
[IMPROV] Consistent usage of 'force'
The newly added function _cache_interwikimap is using 'refresh' instead of
'force' and is the only function with this nomenclature.
Change-Id: Ida651bfecc3fb51836376bd81e6e8fed384a1c71
---
M pywikibot/site.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Nullzero: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index 4a139fa..f50d167 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -597,11 +597,11 @@
return [lang for lang in self.languages()
if lang[:1].upper() + lang[1:] not in nsnames]
- def _cache_interwikimap(self, refresh=False):
+ def _cache_interwikimap(self, force=False):
"""Cache the interwikimap with usable site
instances."""
# _iw_sites is a local cache to return a APISite instance depending
# on the interwiki prefix of that site
- if refresh or not hasattr(self, '_iw_sites'):
+ if force or not hasattr(self, '_iw_sites'):
self._iw_sites = {}
for iw in self.siteinfo['interwikimap']:
try:
--
To view, visit
https://gerrit.wikimedia.org/r/174028
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ida651bfecc3fb51836376bd81e6e8fed384a1c71
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: XZise <CommodoreFabianus(a)gmx.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Ladsgroup <ladsgroup(a)gmail.com>
Gerrit-Reviewer: Merlijn van Deen <valhallasw(a)arctus.nl>
Gerrit-Reviewer: Nullzero <nullzero.free(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>