Skip to content
Snippets Groups Projects
Commit 807ff87c authored by Dan Michael O. Heggø's avatar Dan Michael O. Heggø
Browse files

Merge remote-tracking branch 'origin/master'

Conflicts:
	RELEASE-NOTES.md
parents 566867ab fcbe7a83
No related branches found
No related tags found
No related merge requests found
......@@ -22,9 +22,15 @@ This is the development version of mwclient.
* [2014-11-16] Use Basic/Digest Auth from Requests
* [2014-11-16] Fix so [maxlag](https://www.mediawiki.org/wiki/Manual:Maxlag_parameter)
is handled correctly
* [2014-11-17] [@c-martinez](https://github.com/c-martinez):
Fix filtering of page links by namespace
[65d9ee8](https://github.com/mwclient/mwclient/commit/65d9ee8),
[#72](https://github.com/mwclient/mwclient/issues/72).
## Changes in version 0.7.0
Mwclient 0.7.0 was released on 27 September 2014.
Upgrade notices:
- This version requires minimum Python 2.6 and MediaWiki 1.16.
Support for Python 2.4–2.5 and MediaWiki 1.11–1.15 has been dropped.
......
......@@ -319,7 +319,9 @@ class Page(object):
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment