Bugs item #2860934, was opened at 2009-09-17 22:39 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860934...
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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Daniel Bengtsson (cygnus78) Assigned to: Nobody/Anonymous (nobody) Summary: undefined variable in getTemplates()
Initial Comment: python version.py Pywikipedia [http] trunk/pywikipedia (r7268, 2009/09/17, 15:52:03) Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GCC 4.3.3]
Traceback (most recent call last): File "fpc.py", line 1089, in <module> main() File "fpc.py", line 1078, in main checkCandidates(Candidate.park,delistPage,delist=True); File "fpc.py", line 869, in checkCandidates candidates = findCandidates(page,delist) File "fpc.py", line 847, in findCandidates templates = page.getTemplates() File "/home/yxi/svn/pywikipedia/wikipedia.py", line 949, in getTemplates if limit > config.special_page_limit: NameError: global name 'limit' is not defined
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-09-22 14:42
Message: replace limit with tllimit at line 949 and 951 in wikipedia.py to solve this
----------------------------------------------------------------------
Comment By: Daniel Bengtsson (cygnus78) Date: 2009-09-17 22:44
Message: Works in revision 7253.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2860934...
pywikipedia-bugs@lists.wikimedia.org