o
    ýÑÐbj  ã                   @   sX   d Z dd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ Zdd„ Zdd„ Zdd„ Z	dd„ Z
dS )zø
Complain about multi-argument exception constructors where the first argument
contains a percent sign, thus suggesting a % string formatting was intended
instead.  The same holds for a string containing {...} suggesting str.format()
was intended.
c                 C   ó
   t d| ƒ‚)z2Raising a percent-formatted string and an argumentúBad key: %r©ÚKeyError©Úarg© r   új/var/www/secure340b-portal/env/lib/python3.10/site-packages/pylint/test/functional/raising_format_tuple.pyÚbad_percent   ó   
r	   c                 C   s   t d|  ƒ‚)z9Instead of passing multiple arguments, format the messager   r   r   r   r   r   Úgood_percent   ó   r   c                 C   s   t d| |ƒ‚)z<Raising a formatted string and multiple additional argumentsú%s measures %.2f©Ú
ValueError©ÚnameÚvaluer   r   r   Úbad_multiarg   r   r   c                 C   s   t d| |f ƒ‚)z:The arguments have to be written as a tuple for formattingr   r   r   r   r   r   Úgood_multiarg   s   r   c                 C   r   )zCurly braces as placeholdersúBad key: {:r}r   r   r   r   r   Ú
bad_braces   r
   r   c                 C   s   t d | ¡ƒ‚)zCall str.format() insteadr   )r   Úformatr   r   r   r   Úgood_braces   s   r   c                 C   r   )z!Multiple adjacent string literalsz:Long message about %s split over several adjacent literals©ÚAssertionErrorr   r   r   r   Úbad_multistring    ó   þr   c                 C   r   )z"String literals with triple quoteszBLong message about %s
        split over several adjacent literalsr   r   r   r   r   Úbad_triplequote&   r   r   c                 C   r   )zUnicode string literalzBad %sr   r   r   r   r   Úbad_unicode,   r
   r   c                 C   s   ddl }| d| ¡‚)z1Regression test for nodes without .node attributeé    NzAn %s)Ústandard_exceptionsZMyException)r   r    r   r   r   Úraise_something_without_name0   s   r!   N)Ú__doc__r	   r   r   r   r   r   r   r   r   r!   r   r   r   r   Ú<module>   s    