Revision: 7682 Author: xqt Date: 2009-11-23 11:35:55 +0000 (Mon, 23 Nov 2009)
Log Message: ----------- double verbose required to display login password
Modified Paths: -------------- trunk/pywikipedia/query.py
Modified: trunk/pywikipedia/query.py =================================================================== --- trunk/pywikipedia/query.py 2009-11-23 08:35:56 UTC (rev 7681) +++ trunk/pywikipedia/query.py 2009-11-23 11:35:55 UTC (rev 7682) @@ -75,7 +75,9 @@
for k, v in params.iteritems(): if k not in ['action', 'format', 'file', 'xml']: - if not isinstance(v, unicode): + if k == 'lgpassword' and wikipedia.verbose == 1: + v = u'XXXXX' + elif not isinstance(v, unicode): v = v.decode('utf-8') wikipedia.output(u"%s: %s" % (k, v) ) wikipedia.output(u'-' * 16 )