
    9i                     r    S SK r S SKrS SKrS SKJr   " S S\5      r " S S\ R                  5      rSS jr	g)	    N)
deprecatedc                       \ rS rSrSrg)CLIDeprecationWarning    N)__name__
__module____qualname____firstlineno____static_attributes__r       \/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/paddleocr/_utils/deprecation.pyr   r      s    r   r   c                       \ rS rSrSS jrSrg)DeprecatedOptionAction   Nc                     U(       d   e[         R                  " SU S3[        5        [        X R                  U5        g )NzThe option `zl` has been deprecated and will be removed in the future. Please refer to the documentation for more details.)warningswarnr   setattrdest)selfparser	namespacevaluesoption_strings        r   __call__DeprecatedOptionAction.__call__   s<    }=/  *V  W!	
 		99f-r   r   N)r   r	   r
   r   r   r   r   r   r   r   r      s    .r   r   c                 \    SU  S3nUb	  USU S3-  n[         R                  " U[        SS9  g )NzThe parameter `z8` has been deprecated and will be removed in the future.z Please use `z
` instead.   )
stacklevel)r   r   DeprecationWarning)namenew_namemsgs      r   warn_deprecated_paramr&   $   s@    
$WX  xj
33MM#)a8r   r   )
argparsesysr   typing_extensionsr   r"   r   Actionr   r&   r   r   r   <module>r+      s5     
  6	. 	.X__ .9r   