im trying to get urllib2 to work on my server which runs python
2.2.1.  When i run the following code:


import urllib2
for line in urllib2.urlopen('www.google.com'):
      print line


i will always get the error:
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: iteration over non-sequence


Anyone have any answers?

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to