python - How to "patch" _response.py in Mechanize -


i had issue ntlm authentication , mechanize. after going through below post understood need modify _response.py file of mechanize.

use python mechanize log pages ntlm authentication

but not sure file location is. find .egg file mechanize present @ location: c:\python27\lib\site-packages

can please explain me how patching done. supposed edit file inside egg file?

i figured out.

  • i removed .egg file present in location c:\python27\lib\site-packages.
  • then edited _response.py present inside zip downloaded install mechanize.
  • then installed mechanize again.
  • to verify opened .egg file , checked _reponse.py file.

Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -