Skip to content

Commit 9d6a763

Browse files
committed
style: formatting fixes
Signed-off-by: Daniel Bluhm <[email protected]>
1 parent d8b29c7 commit 9d6a763

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

didcomm_messaging/multiformats/multibase.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,20 @@ def decode(self, value: str) -> bytes:
4141

4242
class Base64UrlEncoder(MultibaseEncoder):
4343
"""Base64URL encoding."""
44+
4445
name = "base64url"
4546
character = "u"
4647

4748
def encode(self, value: bytes) -> str:
4849
"""Encode a byte string using the base64url encoding."""
4950
import base64
51+
5052
return base64.urlsafe_b64encode(value).decode().rstrip("=")
5153

5254
def decode(self, value: str) -> bytes:
5355
"""Decode a base64url encoded string."""
5456
import base64
57+
5558
return base64.urlsafe_b64decode(value + "=" * (-len(value) % 4))
5659

5760

0 commit comments

Comments
 (0)