Skip to content

Commit 2f41417

Browse files
committed
reformat like black wants it.
1 parent 859b456 commit 2f41417

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_jwt.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ def generate(claims, private_key_data=None, algo=None, headers=None):
143143

144144
# pylint: disable=invalid-name
145145
class STRING_TOOLS:
146-
"""Tools and helpers for URL-safe string encoding.
147-
"""
146+
"""Tools and helpers for URL-safe string encoding."""
148147

149148
# Some strings for ctype-style character classification
150149
whitespace = " \t\n\r\v\f"
@@ -184,7 +183,9 @@ def _bytes_from_decode_data(str_data):
184183
try:
185184
return str_data.encode("ascii")
186185
except BaseException as error:
187-
raise ValueError("string argument should contain only ASCII characters") from error
186+
raise ValueError(
187+
"string argument should contain only ASCII characters"
188+
) from error
188189
elif isinstance(str_data, bit_types):
189190
return str_data
190191
else:

0 commit comments

Comments
 (0)