
    Ƒi;                    `    % S r SSKJr  SSKrSrS\S'   SrS\S	'   S
rS\S'   SSS jjrSS jr	g)z&Internal shared utilities for chardet.    )annotationsNi@ intDEFAULT_MAX_BYTESg?floatMINIMUM_THRESHOLDi   _DEFAULT_CHUNK_SIZEc                N    U [         :w  a  [        R                  " S[        US9  gg)zDEmit a deprecation warning if *chunk_size* differs from the default.zEchunk_size is not used in this version of chardet and will be ignored)
stacklevelN)r   warningswarnDeprecationWarning)
chunk_sizer
   s     N/var/www/html/banglarbhumi/venv/lib/python3.13/site-packages/chardet/_utils.py_warn_deprecated_chunk_sizer      s%    ((S!	
 )    c                ~    [        U [        5      (       d  [        U [        5      (       a  U S:  a  Sn[        U5      eg)z:Raise ValueError if *max_bytes* is not a positive integer.   z$max_bytes must be a positive integerN)
isinstanceboolr   
ValueError)	max_bytesmsgs     r   _validate_max_bytesr      s8    )T""*Y*D*D	TU4o IVr   )   )r   r   r
   r   returnNone)r   r   r   r   )
__doc__
__future__r   r   r   __annotations__r   r   r   r    r   r   <module>r!      s?    , "  ! 3     5  " S !
r   