From 8f058e904684cc3638681b96801193b4007fee15 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Tue, 5 Feb 2013 16:34:16 -0500 Subject: [PATCH] Invert check for .json() vs .json in requests. dd74cadb incorrectly used .json when it should have used .json(), and vice-versa. (imported from commit 2a1d0bbaece77e6765c430ddf3e8de5d987194ae) --- humbug/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/humbug/__init__.py b/humbug/__init__.py index f248302..974371e 100644 --- a/humbug/__init__.py +++ b/humbug/__init__.py @@ -39,7 +39,7 @@ __version__ = "0.1.0" # Older versions don't provide the 'json' attribute on responses. assert(requests.__version__ >= '0.12.1') # In newer versions, the 'json' attribute is a function, not a property -requests_json_is_function = isinstance(requests.Response.json, property) +requests_json_is_function = not isinstance(requests.Response.json, property) API_VERSTRING = "/api/v1/"