Make tox -e flake8 pass. (#705)

This library is in maintenance mode, but no reason to leave travis broken. Two
disables and a better `except` in a test and it's green again.
This commit is contained in:
Craig Citro
2017-03-27 09:39:27 -07:00
committed by Jon Wayne Parrott
parent c055e7f7f5
commit a3cf56b659
2 changed files with 5 additions and 1 deletions

View File

@@ -38,7 +38,7 @@ from tests import http_mock
try:
# Python2
from future_builtins import oct
except: # pragma: NO COVER
except ImportError: # pragma: NO COVER
pass
_filehandle, FILENAME = tempfile.mkstemp('oauth2client_test.data')

View File

@@ -110,3 +110,7 @@ putty-ignore =
# Ignore lines over 80 chars that include "http:" or "https:"
/http:/ : E501
/https:/ : E501
# E722 do not use bare except
# Existing sloppy usages.
oauth2client/crypt.py : E722
oauth2client/contrib/multiprocess_file_storage.py : E722