from __future__ import absolute_import, division, print_function __all__ = ["set_run_validators", "get_run_validators"] _run_validators = True def set_run_validators(run): """ Set whether or not validators are run. By default, they are run. """ if not isinstance(run, bool): raise TypeError("'run' must be bool.") global _run_validators _run_validators = run def get_run_validators(): """ Return whether or not validators are run. """ return _run_validators
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 1.13 KB | 0644 |
|
_compat.py | File | 4.19 KB | 0644 |
|
_config.py | File | 514 B | 0644 |
|
_funcs.py | File | 7.71 KB | 0644 |
|
_make.py | File | 48.14 KB | 0644 |
|
converters.py | File | 531 B | 0644 |
|
exceptions.py | File | 1.08 KB | 0644 |
|
filters.py | File | 1.12 KB | 0644 |
|
validators.py | File | 4.84 KB | 0644 |
|