Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/page_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_disambiguate(self):
def test_auto_suggest(self):
"""Test that auto_suggest properly corrects a typo."""
# yum, butter.
butterfly = wikipedia.page("butteryfly")
butterfly = wikipedia.page("butteryfly", auto_suggest=True)

self.assertEqual(butterfly.title, "Butterfly")
self.assertEqual(butterfly.url, "http://en.wikipedia.org/wiki/Butterfly")
Expand Down
4 changes: 2 additions & 2 deletions wikipedia/wikipedia.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def random(pages=1):


@cache
def summary(title, sentences=0, chars=0, auto_suggest=True, redirect=True):
def summary(title, sentences=0, chars=0, auto_suggest=False, redirect=True):
'''
Plain text summary of the page.

Expand Down Expand Up @@ -251,7 +251,7 @@ def summary(title, sentences=0, chars=0, auto_suggest=True, redirect=True):
return summary


def page(title=None, pageid=None, auto_suggest=True, redirect=True, preload=False):
def page(title=None, pageid=None, auto_suggest=False, redirect=True, preload=False):
'''
Get a WikipediaPage object for the page with title `title` or the pageid
`pageid` (mutually exclusive).
Expand Down