urllib - Python: Traceback namerror -


traceback <most recent call last>:   file "wexec.py", line 37, in <module>    urlopen = urllib.urlopen('%xs' % (hcon)) nameerror: name 'hcon' not defined 

i problem doing code in python:

def hell():      hcon = raw_input(fore.red + style.bright + "website: ")     h1 = httplib.httpconnection('%s' % (hcon))     urlopen = urllib.urlopen('%s' % (hcon))  hell() 

as can see, don't see problem @ all. giving error. do?


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -