← Back
Editing: alg_lists.cpython-312.pyc
� ��i+ � �l � d dl mZmZ G d� de� Z G d� de� Z G d� de� Z G d� d e� Zy )� )�PolicySyntaxError� PolicyWarningc � � e Zd Zy)�AlgorithmClassSyntaxErrorN)�__name__� __module__�__qualname__� � �H/usr/share/crypto-policies/python/cryptopolicies/validation/alg_lists.pyr r s � �r r c � � � e Zd Z� fd�Z� xZS )�AlgorithmClassUnknownErrorc �, �� t �| � d|� d�� y )NzUnknown policy property: `�`��super�__init__)�self� alg_class� __class__s �r r z#AlgorithmClassUnknownError.__init__ s �� � ���5�i�[��B�Cr �r r r r � __classcell__�r s @r r r s �� �D� Dr r c � � � e Zd Z� fd�Z� xZS )�AlgorithmEmptyMatchErrorc �2 �� t �| � d|� d|� d�� y )NzBad value of policy property `z`: `r r )r �globr r s �r r z!AlgorithmEmptyMatchError.__init__ s) �� � ���9�)�� E�!�F�!�%� &r r r s @r r r s �� �&� &r r c � � � e Zd Z� fd�Z� xZS )�ExperimentalValueWarningc � �� d|� d�}t |� dk( r |d|d � d�z }n|ddj d � |D � � � d �z }|dz }t �| � |� y )Nr z` r zvalue `� z` is zvalues z, c 3 �( K � | ] }d |� d ��� � y�w)r Nr )�.0�values r � <genexpr>z4ExperimentalValueWarning.__init__.<locals>.<genexpr> s � �� �&H����5�'��|��s �z are z,experimental and might go away in the future)�len�joinr r )r r �values�msgr s �r r z!ExperimentalValueWarning.__init__ so �� ��)��B����v�;�!���W�V�A�Y�K�u�-�-�C��W�T�Y�Y�&H��&H�H�I��O�O�C��=�=�� ����r r r s @r r r s �� �� r r N)�generalr r r r r r r r r �<module>r+ s? �� 6� � 1� �D�!:� D�&�8� &��}� r
Save File
Cancel