Revision: 7663 Author: alexsh Date: 2009-11-16 22:12:39 +0000 (Mon, 16 Nov 2009)
Log Message: ----------- patch user-agent
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2009-11-16 21:58:10 UTC (rev 7662) +++ trunk/pywikipedia/wikipedia.py 2009-11-16 22:12:39 UTC (rev 7663) @@ -8265,6 +8265,7 @@
MyURLopener.add_handler(authhandler)
+MyURLopener.addheaders = [('User-agent', useragent)]
if __name__ == '__main__': import doctest