https://bugzilla.wikimedia.org/show_bug.cgi?id=73489

--- Comment #1 from xqt <[email protected]> ---
Seems the decorator does not handle arguments for redirect as expected:
>>> import pwb
>>> import pywikibot as py
>>> s = py.Site()
>>> x = s.redirect()
>>> x
u'WEITERLEITUNG'
>>> x = s.redirect(True)

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    x = s.redirect(True)
  File "pywikibot\tools.py", line 647, in wrapper
    return obj(*__args, **__kw)
TypeError: redirect() takes exactly 1 argument (2 given)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to