
    ޺i                    2    S r SSKJr  SSKJrJr  SrSS jrg)z?Stage 1c: Pure ASCII detection (with null-separator tolerance).    )annotations)ASCII_TEXT_BYTESDetectionResultg?c                    U (       d  gU R                  S[        5      nU(       d  [        SSSS9$ UR                  SS5      (       a  g[	        U5      [	        U 5      -  nU[
        ::  a  [        SSSS9$ g)aT  Return an ASCII result if all bytes are printable ASCII plus common whitespace.

Tolerates sparse null bytes (``\x00``) up to ``_MAX_NULL_FRACTION`` of
the data, returning confidence 0.99 instead of 1.0 to distinguish from
pure ASCII.

:param data: The raw byte data to examine.
:returns: A :class:`DetectionResult` for ASCII, or ``None``.
Nasciig      ?)encoding
confidencelanguage        gGz?)	translater   r   replacelen_MAX_NULL_FRACTION)data	remaindernull_fractions      U/var/www/piano.thomer.com/venv/lib/python3.13/site-packages/chardet/pipeline/ascii.pydetect_asciir      sp     t%56IC$OO#&&	NSY.M**D4PPr   N)r   bytesreturnzDetectionResult | None)__doc__
__future__r   chardet.pipeliner   r   r   r    r   r   <module>r      s    E " >  r   