From bcc4125a18f807bca14f4865e1770f9fc3b463f2 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Wed, 2 May 2012 22:37:45 -0700 Subject: [PATCH] quiet spurious pyflakes errors --- requests/auth.py | 4 +++- setup.py | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/requests/auth.py b/requests/auth.py index 520f156..a20c545 100644 --- a/requests/auth.py +++ b/requests/auth.py @@ -12,12 +12,14 @@ import hashlib from base64 import b64encode -from .compat import urlparse, str, is_py2 +from .compat import urlparse, str from .utils import randombytes, parse_dict_header try: from oauthlib.oauth1.rfc5849 import (Client, SIGNATURE_HMAC, SIGNATURE_TYPE_AUTH_HEADER) from oauthlib.common import extract_params + # hush pyflakes: + SIGNATURE_HMAC; SIGNATURE_TYPE_AUTH_HEADER except (ImportError, SyntaxError): SIGNATURE_HMAC = None SIGNATURE_TYPE_AUTH_HEADER = None diff --git a/setup.py b/setup.py index 7f08743..1ab216b 100755 --- a/setup.py +++ b/setup.py @@ -12,6 +12,8 @@ from requests.compat import is_py3 try: from setuptools import setup + # hush pyflakes + setup except ImportError: from distutils.core import setup -- 2.34.1