quiet spurious pyflakes errors

This commit is contained in:
Shivaram Lingamneni
2012-05-02 22:37:45 -07:00
parent 7f9ea04286
commit bcc4125a18
2 changed files with 5 additions and 1 deletions
+3 -1
View File
@@ -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
+2
View File
@@ -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