Search code examples
pythonhttplib

NameError: name 'httplib' is not defined


I get the following error on Python 2.6.x, how should I fix this?

  except (httplib.IncompleteRead), e:
NameError: name 'httplib' is not defined

Solution

  • Import Module on file

    import httplib