#IGZ � @ s2 d Z d d l m Z m Z m Z d d � Z d S)z Commonly useful converters. � )�absolute_import�division�print_functionc s � f d d � } | S)z� A converter that allows an attribute to be optional. An optional attribute is one which can be set to ``None``. :param callable converter: the converter that is used for non-``None`` values. .. versionadded:: 17.1.0 c s | d k r d S� | � S)N� )�val)� converterr �/converters.py�optional_converter s z$optional.<locals>.optional_converterr )r r r )r r �optional s r N)�__doc__Z __future__r r r r r r r r �<module> s
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__init__.cpython-35.opt-1.pyc | File | 1.37 KB | 0644 |
|
__init__.cpython-35.pyc | File | 1.37 KB | 0644 |
|
_compat.cpython-35.opt-1.pyc | File | 4.38 KB | 0644 |
|
_compat.cpython-35.pyc | File | 4.38 KB | 0644 |
|
_config.cpython-35.opt-1.pyc | File | 693 B | 0644 |
|
_config.cpython-35.pyc | File | 693 B | 0644 |
|
_funcs.cpython-35.opt-1.pyc | File | 7.05 KB | 0644 |
|
_funcs.cpython-35.pyc | File | 7.05 KB | 0644 |
|
_make.cpython-35.opt-1.pyc | File | 43.37 KB | 0644 |
|
_make.cpython-35.pyc | File | 43.37 KB | 0644 |
|
converters.cpython-35.opt-1.pyc | File | 791 B | 0644 |
|
converters.cpython-35.pyc | File | 791 B | 0644 |
|
exceptions.cpython-35.opt-1.pyc | File | 1.83 KB | 0644 |
|
exceptions.cpython-35.pyc | File | 1.83 KB | 0644 |
|
filters.cpython-35.opt-1.pyc | File | 1.79 KB | 0644 |
|
filters.cpython-35.pyc | File | 1.79 KB | 0644 |
|
validators.cpython-35.opt-1.pyc | File | 5.75 KB | 0644 |
|
validators.cpython-35.pyc | File | 5.75 KB | 0644 |
|