Skip to content

Commit a3cf56b

Browse files
craigcitroJon Wayne Parrott
authored and
Jon Wayne Parrott
committed
Make tox -e flake8 pass. (googleapis#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.
1 parent c055e7f commit a3cf56b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/test_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
try:
3939
# Python2
4040
from future_builtins import oct
41-
except: # pragma: NO COVER
41+
except ImportError: # pragma: NO COVER
4242
pass
4343

4444
_filehandle, FILENAME = tempfile.mkstemp('oauth2client_test.data')

tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ putty-ignore =
110110
# Ignore lines over 80 chars that include "http:" or "https:"
111111
/http:/ : E501
112112
/https:/ : E501
113+
# E722 do not use bare except
114+
# Existing sloppy usages.
115+
oauth2client/crypt.py : E722
116+
oauth2client/contrib/multiprocess_file_storage.py : E722

0 commit comments

Comments
 (0)