PyDocs

Nav

Internet Data Handling

a85decode

base64

function · Added in 3.4 (source)
  • a85decode(b, *, foldspaces=False, adobe=False, ignorechars=b' \t\n\r\x0b', canonical=False)
Decode the Ascii85 encoded bytes-like object or ASCII string b.

foldspaces is a flag that specifies whether the 'y' short sequence
should be accepted as shorthand for 4 consecutive spaces (ASCII
0x20).  This feature is not supported by the standard Ascii85
encoding used in PDF and PostScript.

adobe controls whether the <~ and ~> markers are present. While
the leading <~ is not required, the input must end with ~>, or a
ValueError is raised.

ignorechars should be a byte string containing characters to ignore from the
input. This should only contain whitespace characters, and by default
contains all whitespace characters in ASCII.

If canonical is true, non-canonical encodings are rejected.

The result is returned as a bytes object.
Changed in 3.15
  • 3.15: Added the canonical parameter. Single-character final groups are now always rejected as encoding violations.
0 Examples
No examples for base64/a85decode.
See Also
No see-alsos for base64/a85decode
0 Notes
No notes for a85decode