r80911 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80910‎ | r80911 | r80912 >
Date:20:27, 24 January 2011
Author:catrope
Status:ok
Tags:
Comment:
1.16wmf4: Commit local change to captcha.py , seems to fix a trivial variable name issue
Modified paths:
  • /branches/wmf/1.16wmf4/extensions/ConfirmEdit/captcha.py (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/extensions/ConfirmEdit/captcha.py
@@ -150,7 +150,7 @@
151151 sys.exit("Unable to find valid word combinations")
152152
153153 def read_wordlist(filename):
154 - return [x.strip().lower() for x in open(wordlist).readlines()]
 154+ return [x.strip().lower() for x in open(filename).readlines()]
155155
156156 if __name__ == '__main__':
157157 """This grabs random words from the dictionary 'words' (one

Status & tagging log