Revision: 6749 Author: multichill Date: 2009-04-29 13:05:37 +0000 (Wed, 29 Apr 2009)
Log Message: ----------- Assign none to matches to prevent UnboundLocalError.
Modified Paths: -------------- trunk/pywikipedia/imagerecat.py
Modified: trunk/pywikipedia/imagerecat.py =================================================================== --- trunk/pywikipedia/imagerecat.py 2009-04-29 11:54:39 UTC (rev 6748) +++ trunk/pywikipedia/imagerecat.py 2009-04-29 13:05:37 UTC (rev 6749) @@ -111,6 +111,7 @@ commonsenseRe = re.compile('^#COMMONSENSE(.*)#USAGE(\s)+((?P<usagenum>(\d)+))\s(?P<usage>(.*))\s#KEYWORDS(\s)+((?P<keywords>(\d)+))(.*)#CATEGORIES(\s)+((?P<catnum>(\d)+))\s(?P<cats>(.*))\s#GALLERIES(\s)+((?P<galnum>(\d)+))\s(?P<gals>(.*))\s(.*)#EOF$', re.MULTILINE + re.DOTALL)
gotInfo = False + matches = None maxtries = 10 tries = 0
pywikipedia-svn@lists.wikimedia.org