Bugs item #2991723, was opened at 2010-04-24 13:39 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2991723...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: other Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: Toto Azéro (toto-azero)
Assigned to: xqt (xqt)
Summary: redirect.py doesn't work with -moves option
Initial Comment: redirect.py doesn't work when I use it with the -moves and -api options :
python redirect.py double -moves -api Traceback (most recent call last): File "redirect.py", line 867, in <module> main() File "redirect.py", line 863, in main bot.run() File "redirect.py", line 782, in run self.fix_double_redirects() File "redirect.py", line 619, in fix_double_redirects for redir_name in self.generator.retrieve_double_redirects(): File "redirect.py", line 430, in retrieve_double_redirects for redir_page in gen: File "redirect.py", line 466, in get_moved_pages_redirects_via_api wikipedia.output(u'Retrieving %d moved pages via API...' % len(allmoves)) NameError: global name 'allmoves' is not defined
python version.py Pywikipedia [http] trunk/pywikipedia (r8125, 2010/04/23, 14:35:54) Python 2.6.5 (r265:79359, Mar 24 2010, 01:32:55) [GCC 4.0.1 (Apple Inc. build 5493)] config-settings: use_api = True use_api_login = True
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-04-26 08:24
Message: done in r8126
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2991723...