Skip to content

Commit

Permalink
quiet spurious pyflakes errors
Browse files Browse the repository at this point in the history
  • Loading branch information
slingamn committed May 4, 2012
1 parent 7f9ea04 commit bcc4125
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion requests/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@

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
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

try:
from setuptools import setup
# hush pyflakes
setup
except ImportError:
from distutils.core import setup

Expand Down

0 comments on commit bcc4125

Please sign in to comment.