lukecyca/pyzabbix — pull request #10 by blin (2012-05-27 10:56:34+00:00)
Title: Ported pyzabbix to requests library

I've replaced all urllib code with requests ( http://docs.python-requests.org/en/latest/index.html ).
This allows pyzabbix to be both python2 and python3 compitable. Also requests sessions can be later used to use one http session for all requests.
Also i've moved setting http_username and http_password from ZabbixAPI constructor to set_http_auth method.
I've tested this code on requests 12, python 2.7 and python 3.2. Later this week i will test it on python 2.6 and requests 10 (debian squeeze).

I had to change examples, because raw_input is replaced with input in python3, maybe you can think of something (like using six, for example)?