python-tent-client icon indicating copy to clipboard operation
python-tent-client copied to clipboard

working with Requests1.1.0

Open lantip opened this issue 13 years ago • 3 comments

fixing issues 'instancemethod' object is not subscriptable (requests 1.1.0 use different approach)

lantip avatar Jan 22 '13 01:01 lantip

Hey, I haven't had a chance to test this or look into the Requests changes yet, but thanks for the patch. There were a few problems that jumped out at me so I added comments inline... if you could fix those that would be great.

graue avatar Jan 22 '13 02:01 graue

ah ok, noticed. I always use tab when code in python, never realized that would be a problem. I'll take a look again later. basically i'm just replace the code so it will work on python latest requests module. i'm commenting out some code just for historical purpose. the only thing i'm not really sure is with the request.request.default lines. everything goes fine after i'm commenting out this line.

lantip avatar Jan 22 '13 03:01 lantip

something wrong with my first commit, sorry. and also i've made it follow PEP8 standard.

lantip avatar Jan 22 '13 04:01 lantip