jenkins-bot has submitted this change and it was merged.
Change subject: Add new 'tcy' Wikipedia to the family
......................................................................
Add new 'tcy' Wikipedia to the family
Like we added 'jam' in I6b2f775fb720a83d918,
we are now adding the latest new Wikipedia, 'tcy',
Tulu Wikipedia which has been approved today.
https://meta.wikimedia.org/wiki/Requests_for_new_languages/Wikipedia_Tulu
Bug: T140898
Change-Id: I0747e8c71203a261c54c22e41eb3110e0af358f9
---
M pywikibot/families/wikipedia_family.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
John Vandenberg: Looks good to me, but someone else must approve
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/families/wikipedia_family.py b/pywikibot/families/wikipedia_family.py
index 4bc9274..830949d 100644
--- a/pywikibot/families/wikipedia_family.py
+++ b/pywikibot/families/wikipedia_family.py
@@ -79,7 +79,7 @@
'om', 'chy', 'rmy', 'cu', 'tw', 'tn', 'tum', 'xh', 'rn', 'pih',
'bi', 'got', 'ss', 'pnt', 'ch', 'bm', 'ts', 'ady', 'iu', 'ee', 'ny',
'st', 'ks', 'fj', 'ak', 'ik', 'sg', 've', 'dz', 'ff', 'ti', 'cr',
- 'jam',
+ 'jam', 'tcy',
]
# Sites we want to edit but not count as real languages
--
To view, visit https://gerrit.wikimedia.org/r/300219
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I0747e8c71203a261c54c22e41eb3110e0af358f9
Gerrit-PatchSet: 6
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dzahn <dzahn(a)wikimedia.org>
Gerrit-Reviewer: Dereckson <dereckson(a)espace-win.org>
Gerrit-Reviewer: Dzahn <dzahn(a)wikimedia.org>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: __init__.py: Specify the rtype for Site
......................................................................
__init__.py: Specify the rtype for Site
Change-Id: I6a9b8711e6abf920d3bc217b7745f6b8de71b415
---
M pywikibot/__init__.py
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/__init__.py b/pywikibot/__init__.py
index c80c9e1..70771dd 100644
--- a/pywikibot/__init__.py
+++ b/pywikibot/__init__.py
@@ -744,6 +744,8 @@
@param url: Instead of code and fam, does try to get a Site based on the
URL. Still requires that the family supporting that URL exists.
@type url: string
+ @rtype: pywikibot.site.APISite
+
"""
# Either code and fam or only url
if url and (code or fam):
--
To view, visit https://gerrit.wikimedia.org/r/299556
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I6a9b8711e6abf920d3bc217b7745f6b8de71b415
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>
jenkins-bot has submitted this change and it was merged.
Change subject: solve_disambiguation.py: Do not suggest duplicate alternatives
......................................................................
solve_disambiguation.py: Do not suggest duplicate alternatives
Bug: T138667
Change-Id: I137adebe9a8941db40e84a9785073693a6e3d487
---
M scripts/solve_disambiguation.py
1 file changed, 13 insertions(+), 5 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/solve_disambiguation.py b/scripts/solve_disambiguation.py
index 92d8938..74ad11b 100755
--- a/scripts/solve_disambiguation.py
+++ b/scripts/solve_disambiguation.py
@@ -71,7 +71,7 @@
# (C) Daniel Herding, 2004
# (C) Andre Engels, 2003-2004
# (C) WikiWichtel, 2004
-# (C) Pywikibot team, 2003-2015
+# (C) Pywikibot team, 2003-2016
#
# Distributed under the terms of the MIT license.
#
@@ -651,9 +651,16 @@
return None
def makeAlternativesUnique(self):
- """Remove duplicate entries stable."""
- unique = set(self.alternatives)
- self.alternatives = [alt for alt in self.alternatives if alt in unique]
+ """Remove duplicate items from self.alternatives.
+
+ Preserve the order of alternatives.
+ @rtype: None
+
+ """
+ seen = set()
+ self.alternatives = [
+ i for i in self.alternatives if i not in seen and not seen.add(i)
+ ]
def listAlternatives(self):
"""Show a list of alternatives."""
@@ -954,7 +961,7 @@
def findAlternatives(self, disambPage):
"""Extend self.alternatives using correctcap of disambPage.linkedPages.
- @param disambPage: the disabiguation page
+ @param disambPage: the disambiguation page
@type disambPage: pywikibot.Page
@return: True if everything goes fine, False otherwise
@rtype: bool
@@ -1002,6 +1009,7 @@
u"The specified page is not a redirect. Skipping.")
return False
elif self.getAlternatives:
+ # not disambPage.isRedirectPage() or self.primary
try:
if self.primary:
try:
--
To view, visit https://gerrit.wikimedia.org/r/299277
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I137adebe9a8941db40e84a9785073693a6e3d487
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>