Skip to content

Commit 7895f7e

Browse files
authored
Updates for pycodestyle. (#2973)
1 parent 6e7ee95 commit 7895f7e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/google-cloud-storage/unit_tests/test_batch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_ctor_body_None(self):
4040
LINES = [
4141
"DELETE /path/to/api HTTP/1.1",
4242
"",
43-
]
43+
]
4444
mah = self._make_one(METHOD, PATH, {}, None)
4545
self.assertEqual(mah.get_content_type(), 'application/http')
4646
self.assertEqual(mah.get_payload().splitlines(), LINES)
@@ -56,7 +56,7 @@ def test_ctor_body_str(self):
5656
"Content-Type: text/plain",
5757
"",
5858
"ABC",
59-
]
59+
]
6060
mah = self._make_one(METHOD, PATH, HEADERS, BODY)
6161
self.assertEqual(mah.get_payload().splitlines(), LINES)
6262

@@ -71,7 +71,7 @@ def test_ctor_body_dict(self):
7171
'Content-Type: application/json',
7272
'',
7373
'{"foo": "bar"}',
74-
]
74+
]
7575
mah = self._make_one(METHOD, PATH, HEADERS, BODY)
7676
self.assertEqual(mah.get_payload().splitlines(), LINES)
7777

packages/google-cloud-storage/unit_tests/test_bucket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ def api_request(self, **kw):
10981098

10991099
try:
11001100
response, self._responses = self._responses[0], self._responses[1:]
1101-
except:
1101+
except IndexError:
11021102
raise NotFound('miss')
11031103
else:
11041104
return response

0 commit comments

Comments
 (0)