Home
last modified time | relevance | path

Searched refs:foldspaces (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/
Dbase64.py279 def _85encode(b, chars, chars2, pad=False, foldnuls=False, foldspaces=False): argument
290 b'y' if foldspaces and word == 0x20202020 else
303 def a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False): argument
327 result = _85encode(b, _a85chars, _a85chars2, pad, True, foldspaces)
344 def a85decode(b, *, foldspaces=False, adobe=False, ignorechars=b' \t\n\r\v'): argument
397 elif foldspaces and x == b'y'[0]:
/external/python/cpython3/Lib/test/
Dtest_base64.py442 eq(base64.a85encode(b' '*8, foldspaces=True, adobe=False), b'yy')
443 eq(base64.a85encode(b' '*7, foldspaces=True, adobe=False), b'y+<Vd')
444 eq(base64.a85encode(b' '*6, foldspaces=True, adobe=False), b'y+<U')
445 eq(base64.a85encode(b' '*5, foldspaces=True, adobe=False), b'y+9')
518 eq(base64.a85decode(b'yy', foldspaces=True, adobe=False), b' '*8)
519 eq(base64.a85decode(b'y+<Vd', foldspaces=True, adobe=False), b' '*7)
520 eq(base64.a85decode(b'y+<U', foldspaces=True, adobe=False), b' '*6)
521 eq(base64.a85decode(b'y+9', foldspaces=True, adobe=False), b' '*5)
/external/python/cpython3/Doc/library/
Dbase64.rst159 .. function:: a85encode(b, *, foldspaces=False, wrapcol=0, pad=False, adobe=False)
164 *foldspaces* is an optional flag that uses the special short sequence 'y'
181 .. function:: a85decode(b, *, foldspaces=False, adobe=False, ignorechars=b' \\t\\n\\r\\v')
186 *foldspaces* is a flag that specifies whether the 'y' short sequence