git.fiddlerwoaroof.com
Browse code

using self._post rather than urllib2.urlopen in proxy.py

Ed L authored on 17/06/2011 21:44:30
Showing 1 changed files
... ...
@@ -200,7 +200,7 @@ class JSONRPCProxy(object):
200 200
 		if hasattr(methods, 'items'): methods = methods.items()
201 201
 		data = [ getattr(self, k)._get_postdata(*v) for k, v in methods ]
202 202
 		postdata = '[%s]' % ','.join(data)
203
-		respdata = urllib2.urlopen(self._get_url(), postdata).read()
203
+		respdata = self._post(self._get_url(), postdata).read()
204 204
 		resp = Response.from_json(respdata)
205 205
 		try:
206 206
 			result = resp.get_result()