Skip to content

Commit

Permalink
Merge pull request #72 from c-martinez/master
Browse files Browse the repository at this point in the history
Filtering links by namespace not working
  • Loading branch information
danmichaelo committed Nov 17, 2014
2 parents aa490ba + 689d32b commit 65d9ee8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mwclient/page.py
Expand Up @@ -320,7 +320,9 @@ def langlinks(self, **kwargs):
return listing.PageProperty(self, 'langlinks', 'll', return_values=('lang', '*'), **kwargs)

def links(self, namespace=None, generator=True, redirects=False):
kwargs = dict(listing.List.generate_kwargs('pl', namespace=namespace))
prefix = listing.List.get_prefix('pl', generator)
kwargs = dict(listing.List.generate_kwargs(prefix, namespace=namespace))

if redirects:
kwargs['redirects'] = '1'
if generator:
Expand Down

0 comments on commit 65d9ee8

Please sign in to comment.