From babac7368b9aa34fd1f0e5d29d4f80c2006ad614 Mon Sep 17 00:00:00 2001 From: ayanamist Date: Tue, 28 Aug 2012 15:38:13 +0800 Subject: [PATCH] Change variable name "_cond" -> "_oauth_signed". --- requests/auth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/requests/auth.py b/requests/auth.py index 8b0aeb5..6c5264e 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -87,7 +87,7 @@ class OAuth1(AuthBase): # Content-type: x-www-form-urlencoded. We guess it will have # a mimetype of multipart/form-data and if this is not the case # we assume the correct header will be set later. - _cond = True + _oauth_signed = True if r.files and contenttype == CONTENT_TYPE_MULTI_PART: # Omit body data in the signing and since it will always # be empty (cant add paras to body if multipart) and we wish @@ -101,8 +101,8 @@ class OAuth1(AuthBase): r.url, r.headers, r.data = self.client.sign( unicode(r.full_url), unicode(r.method), r.data, r.headers) else: - _cond = False - if _cond: + _oauth_signed = False + if _oauth_signed: # Both flows add params to the URL by using r.full_url, # so this prevents adding it again later r.params = {} -- 2.34.1