Skip to content

Commit 23146d2

Browse files
committed
Appease black.
1 parent 69ea2d9 commit 23146d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

requests_oauthlib/oauth2_session.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -555,24 +555,24 @@ def _raise_for_5xx(self, response):
555555
:param response: HTTP response object from requests
556556
Raises :class:`requests.exceptions.HTTPError`, if a 5XX error occurred.
557557
"""
558-
http_error_msg = ''
558+
http_error_msg = ""
559559
if isinstance(response.reason, bytes):
560560
# We attempt to decode utf-8 first because some servers
561561
# choose to localize their reason strings. If the string
562562
# isn't utf-8, we fall back to iso-8859-1 for all other
563563
# encodings. (See psf/requests PR #3538)
564564
try:
565-
reason = response.reason.decode('utf-8')
565+
reason = response.reason.decode("utf-8")
566566
except UnicodeDecodeError:
567-
reason = response.reason.decode('iso-8859-1')
567+
reason = response.reason.decode("iso-8859-1")
568568
else:
569569
reason = response.reason
570570

571571
if 400 <= response.status_code < 500:
572572
pass # ignored
573573

574574
elif 500 <= response.status_code < 600:
575-
http_error_msg = u'%s Server Error: %s for url: %s' % (
575+
http_error_msg = "%s Server Error: %s for url: %s" % (
576576
response.status_code, reason, response.url
577577
)
578578

0 commit comments

Comments
 (0)