On Fri, Jan 23, 2009 at 5:37 AM, Andre Engels <andreeng...@gmail.com> wrote:
> Looking further I found that a 'cleaner' way to make the same change > is to add to the code of URLopener (outside any method): > > version = '<whatever>' You can do this without modifying the standard library source, by import urllib urllib.URLopener.version = '<whatever>' The version string is used as the User-Agent, that is why this works at all. Kent _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor