Revision: 7034 Author: alexsh Date: 2009-07-09 10:11:29 +0000 (Thu, 09 Jul 2009)
Log Message: ----------- Hide lgpassword in API login verbose
Modified Paths: -------------- trunk/pywikipedia/login.py
Modified: trunk/pywikipedia/login.py =================================================================== --- trunk/pywikipedia/login.py 2009-07-09 02:32:41 UTC (rev 7033) +++ trunk/pywikipedia/login.py 2009-07-09 10:11:29 UTC (rev 7034) @@ -166,7 +166,7 @@ response, data = self.site.postData(address, self.site.urlEncode(predata)) if self.verbose: fakepredata = predata - fakepredata['wpPassword'] = u'XXXXX' + fakepredata['wpPassword'] = fakepredata['lgpassword'] = u'XXXXX' wikipedia.output(u"self.site.postData(%s, %s)" % (address, self.site.urlEncode(fakepredata))) fakeresponsemsg = re.sub(r"(session|Token)=..........", r"session=XXXXXXXXXX", response.msg.__str__()) wikipedia.output(u"%s/%s\n%s" % (response.status, response.reason, fakeresponsemsg))
pywikipedia-svn@lists.wikimedia.org