Skip to content

Instantly share code, notes, and snippets.

View faulkner's full-sized avatar

Chris Faulkner faulkner

  • San Francisco, CA
View GitHub Profile
@dcramer
dcramer / fix_requests.py
Last active December 11, 2015 21:28
Because you should maintain API compatibility when you tell everyone to use your shit.
from requests.models import Response
class fixedjson(object):
def __init__(self, func):
self.func = func
def __get__(self, inst, cls):
result = self.func(inst)
class proxy(type(result)):