Atttribute error
HMS Surprise
john at datavoiceint.com
Tue May 8 12:29:45 EDT 2007
The snippet below causes an attribute error.
AttributeError: module 'urllib' has no attribute 'urlopen'
I am using python 2.2.3. According to the documentation at C:
\Python22\Doc\lib urllib has a function called urlopen.
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
import urllib
class login(CompactTest):
# Recorded test actions.
def runTest(self):
f = urllib.urlopen("http://www.python.org/")
f.read()
More information about the Python-list
mailing list