Xqt has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/98818


Change subject: Revert "Fast fixation of the Bug: 57879"
......................................................................

Revert "Fast fixation of the Bug: 57879"

This reverts commit 60a480c15b9e1af8926bb85f502987414292a4b0.

Please have a look to the bug tracker first. The bug was assigned and the bug 
already in review

Change-Id: I6972fb737cb994faad39002b8aa0fb9d8ab3eff9
---
M solve_disambiguation.py
1 file changed, 1 insertion(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/compat 
refs/changes/18/98818/1

diff --git a/solve_disambiguation.py b/solve_disambiguation.py
index 41550b0..8fe8cd6 100644
--- a/solve_disambiguation.py
+++ b/solve_disambiguation.py
@@ -894,8 +894,7 @@
                 self.alternatives += links
             else:
                 try:
-                    disambPage2 = pywikibot.Page(disambPage.site(), 
disambPage.title())
-                    target = disambPage2.getRedirectTarget().title()
+                    target = disambPage.getRedirectTarget().title()
                     self.alternatives.append(target)
                 except pywikibot.NoPage:
                     pywikibot.output(u"The specified page was not found.")

-- 
To view, visit https://gerrit.wikimedia.org/r/98818
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6972fb737cb994faad39002b8aa0fb9d8ab3eff9
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/compat
Gerrit-Branch: master
Gerrit-Owner: Xqt <i...@gno.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to