# Path: resources/lib/PhoneBooks/pyicloud/vendorlibs/keyring/py27compat.py
# def add_metaclass(metaclass):
#     def wrapper(cls):


from .py27compat import builtins
"""
Compatibility support for Python 3.3. Remove when Python 3.3 support is
no longer required.
"""



def max(*args, **kwargs):
    """
    Add support for 'default' kwarg.

    >>> max([], default='res')
    'res'

    >>> max(default='res')
    Traceback (most recent call last):
    ...
    TypeError: ...

    >>> max('a', 'b', default='other')
    'b'
    """
    missing = object()
    default = kwargs.pop('default', missing)
    try:

# Path: resources/lib/PhoneBooks/pyicloud/vendorlibs/keyring/py27compat.py
# def add_metaclass(metaclass):
#     def wrapper(cls):


# Path: resources/lib/PhoneBooks/pyicloud/vendorlibs/keyring/py33compat.py
from .py27compat import builtins

"""
Compatibility support for Python 3.3. Remove when Python 3.3 support is
no longer required.
"""



def max(*args, **kwargs):
    """
    Add support for 'default' kwarg.

    >>> max([], default='res')
    'res'

    >>> max(default='res')
    Traceback (most recent call last):
    ...
    TypeError: ...

    >>> max('a', 'b', default='other')
    'b'
    """
    missing = object()
    default = kwargs.pop('default', missing)
    try:

        return builtins.max(*args, **kwargs)