OXIESEC PANEL
- Current Dir:
/
/
usr
/
lib
/
python3
/
dist-packages
/
attr
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
03/17/2025 09:32:20 AM
rwxr-xr-x
📄
__init__.py
1.13 KB
12/30/2017 08:06:59 AM
rw-r--r--
📁
__pycache__
-
10/21/2019 03:49:50 PM
rwxr-xr-x
📄
_compat.py
4.19 KB
12/30/2017 08:06:59 AM
rw-r--r--
📄
_config.py
514 bytes
12/30/2017 08:06:59 AM
rw-r--r--
📄
_funcs.py
7.71 KB
12/30/2017 08:06:59 AM
rw-r--r--
📄
_make.py
48.14 KB
12/30/2017 08:06:59 AM
rw-r--r--
📄
converters.py
531 bytes
12/30/2017 08:06:59 AM
rw-r--r--
📄
exceptions.py
1.08 KB
12/30/2017 08:06:59 AM
rw-r--r--
📄
filters.py
1.12 KB
12/30/2017 08:06:59 AM
rw-r--r--
📄
validators.py
4.84 KB
12/30/2017 08:06:59 AM
rw-r--r--
Editing: converters.py
Close
""" Commonly useful converters. """ from __future__ import absolute_import, division, print_function def optional(converter): """ 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 """ def optional_converter(val): if val is None: return None return converter(val) return optional_converter