File: //proc/self/root/usr/lib/python3/dist-packages/keyring/__pycache__/py33compat.cpython-38.pyc
U
ܦ�\� � @ s d Z ddlmZ dd� ZdS )z]
Compatibility support for Python 3.3. Remove when Python 3.3 support is
no longer required.
� )�builtinsc
O sj t � }|�d|�}ztj| |�W S tk
rd } z&dt|�krR||k rR| W Y �S � W 5 d}~X Y nX dS )z�
Add support for 'default' kwarg.
>>> max([], default='res')
'res'
>>> max(default='res')
Traceback (most recent call last):
...
TypeError: ...
>>> max('a', 'b', default='other')
'b'
�defaultzempty sequenceN)�object�popr �max�
ValueError�str)�args�kwargsZmissingr �exc� r �4/usr/lib/python3/dist-packages/keyring/py33compat.pyr s r N)�__doc__Z
py27compatr r r r r r
�<module> s