decode.py 207 B

12345678
  1. """Util to decode content from the github API."""
  2. from base64 import b64decode
  3. def decode_content(content: str) -> str:
  4. """Decode content."""
  5. return b64decode(bytearray(content, "utf-8")).decode()