Added TODO

This commit is contained in:
Rudi Grinberg 2012-10-30 15:45:41 -04:00
parent 24dce45a06
commit 845db6a3cc
1 changed files with 2 additions and 0 deletions

View File

@ -80,6 +80,8 @@ class ApiRequest(object):
self.name = name
self.url = url
def __call__(self,_post_data=None, **kwargs):
# TODO : get rid of god damn urllib and replace everything with
# grequests or requests at least
final_url = self.url.params(**kwargs).url()
req = urllib2.Request(final_url, _post_data)
response = urllib2.urlopen(req).read()