Skip to content

Commit e84b1f2

Browse files
committed
Style fixes for #53
1 parent f45974a commit e84b1f2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

acoustid.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,14 @@ def _api_request(url, params, timeout=None):
182182
with requests.Session() as session:
183183
session.mount('http://', CompressedHTTPAdapter())
184184
try:
185-
response = session.post(url, data=params, headers=headers, timeout=timeout)
185+
response = session.post(url, data=params, headers=headers,
186+
timeout=timeout)
186187
except requests.exceptions.RequestException as exc:
187188
raise WebServiceError("HTTP request failed: {0}".format(exc))
188189
except requests.exceptions.ReadTimeout:
189-
raise WebServiceError("HTTP timed out ({0}s)".format(timeout))
190+
raise WebServiceError(
191+
"HTTP request timed out ({0}s)".format(timeout)
192+
)
190193

191194
try:
192195
return response.json()
@@ -332,7 +335,8 @@ def fingerprint_file(path, maxlength=MAX_AUDIO_LENGTH, force_fpcalc=False):
332335
return _fingerprint_file_fpcalc(path, maxlength)
333336

334337

335-
def match(apikey, path, meta=DEFAULT_META, parse=True, force_fpcalc=False, timeout=None):
338+
def match(apikey, path, meta=DEFAULT_META, parse=True, force_fpcalc=False,
339+
timeout=None):
336340
"""Look up the metadata for an audio file. If ``parse`` is true,
337341
then ``parse_lookup_result`` is used to return an iterator over
338342
small tuple of relevant information; otherwise, the full parsed JSON

0 commit comments

Comments
 (0)