/usr/lib/python2.6/site-packages/oslo_serialization
NameSizeModeActions
tests/-0755rm
base64.py25760644editdlrm
base64.pyc26790644editdlrm
jsonutils.py88360644editdlrm
jsonutils.pyc70290644editdlrm
msgpackutils.py107080644editdlrm
msgpackutils.pyc137610644editdlrm
__init__.py00644editdlrm
__init__.pyc1580644editdlrm
Edit: /usr/lib/python2.6/site-packages/oslo_serialization/base64.pyc (2679B)
Ñò 7 Wc@@s_dZddklZddkZddkZdd„Zdd„Zd„Zdd„ZdS( s@ Utilities to encode and decode Base64. .. versionadded:: 1.10 i(tabsolute_importNsutf-8cC@s3t|tiƒo|i|ƒ}nti|ƒS(s`Encode a string using Base64. If *s* is a text string, first encode it to *encoding* (UTF-8 by default). :param s: bytes or text string to be encoded :param encoding: encoding used to encode *s* if it's a text string :returns: Base64 encoded byte string (bytes) Use encode_as_text() to get the Base64 encoded string as text. (t isinstancetsixt text_typetencodetbase64t b64encode(tstencoding((sE/tmp/pip-build-wCUybK/oslo.serialization/oslo_serialization/base64.pytencode_as_bytess cC@st|d|ƒ}|idƒS(sdEncode a string using Base64. If *s* is a text string, first encode it to *encoding* (UTF-8 by default). :param s: bytes or text string to be encoded :param encoding: encoding used to encode *s* if it's a text string :returns: Base64 encoded text string (Unicode) Use encode_as_bytes() to get the Base64 encoded string as bytes. Rtascii(R tdecode(RRtencoded((sE/tmp/pip-build-wCUybK/oslo.serialization/oslo_serialization/base64.pytencode_as_text-s cC@s0t|tƒo|idƒ}nti|ƒS(sÓDecode a Base64 encoded string. :param encoded: bytes or text Base64 encoded string to be decoded :returns: decoded bytes string (bytes) Use decode_as_text() to get the decoded string as text. R (RtbytesR Rt b64decode(R ((sE/tmp/pip-build-wCUybK/oslo.serialization/oslo_serialization/base64.pytdecode_as_bytes<scC@st|ƒ}|i|ƒS(s5Decode a Base64 encoded string. Decode the Base64 string and then decode the result from *encoding* (UTF-8 by default). :param encoded: bytes or text Base64 encoded string to be decoded :returns: decoded text string (bytes) Use decode_as_bytes() to get the decoded string as bytes. (RR (R Rtdecoded((sE/tmp/pip-build-wCUybK/oslo.serialization/oslo_serialization/base64.pytdecode_as_textIs ( t__doc__t __future__RRRR R RR(((sE/tmp/pip-build-wCUybK/oslo.serialization/oslo_serialization/base64.pyts