From bf1744eea2b16012ace3cc74be20fb60731ff822 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Tue, 1 May 2012 06:57:21 -0400 Subject: [PATCH] hax --- requests/auth.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requests/auth.py b/requests/auth.py index 3e900df..64f698e 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -20,6 +20,9 @@ CONTENT_TYPE_FORM_URLENCODED = 'application/x-www-form-urlencoded' if is_py2: from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER) from oauthlib.common import extract_params +else: + SIGNATURE_HMAC = None + SIGNATURE_TYPE_AUTH_HEADER = None def _basic_auth_str(username, password): """Returns a Basic Auth string.""" -- 2.34.1