ACIL FM
Dark
Refresh
Current DIR:
/usr/lib/python3.9/site-packages/ansible/utils
/
usr
lib
python3.9
site-packages
ansible
utils
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
collection_loader
-
chmod
Open
Rename
Delete
__pycache__
-
chmod
Open
Rename
Delete
cmd_functions.py
2.16 MB
chmod
View
DL
Edit
Rename
Delete
color.py
4.01 MB
chmod
View
DL
Edit
Rename
Delete
context_objects.py
3.05 MB
chmod
View
DL
Edit
Rename
Delete
display.py
18.99 MB
chmod
View
DL
Edit
Rename
Delete
encrypt.py
10.26 MB
chmod
View
DL
Edit
Rename
Delete
fqcn.py
1.24 MB
chmod
View
DL
Edit
Rename
Delete
galaxy.py
3.82 MB
chmod
View
DL
Edit
Rename
Delete
hashing.py
2.84 MB
chmod
View
DL
Edit
Rename
Delete
helpers.py
1.8 MB
chmod
View
DL
Edit
Rename
Delete
jsonrpc.py
3.74 MB
chmod
View
DL
Edit
Rename
Delete
listify.py
1.67 MB
chmod
View
DL
Edit
Rename
Delete
lock.py
1.36 MB
chmod
View
DL
Edit
Rename
Delete
multiprocessing.py
698 B
chmod
View
DL
Edit
Rename
Delete
native_jinja.py
346 B
chmod
View
DL
Edit
Rename
Delete
path.py
5.74 MB
chmod
View
DL
Edit
Rename
Delete
plugin_docs.py
14.74 MB
chmod
View
DL
Edit
Rename
Delete
py3compat.py
2.35 MB
chmod
View
DL
Edit
Rename
Delete
sentinel.py
2.4 MB
chmod
View
DL
Edit
Rename
Delete
shlex.py
1.25 MB
chmod
View
DL
Edit
Rename
Delete
singleton.py
949 B
chmod
View
DL
Edit
Rename
Delete
ssh_functions.py
2.23 MB
chmod
View
DL
Edit
Rename
Delete
unicode.py
1.14 MB
chmod
View
DL
Edit
Rename
Delete
unsafe_proxy.py
12.43 MB
chmod
View
DL
Edit
Rename
Delete
vars.py
9.9 MB
chmod
View
DL
Edit
Rename
Delete
version.py
7.65 MB
chmod
View
DL
Edit
Rename
Delete
_junit_xml.py
8.53 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
833 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /usr/lib/python3.9/site-packages/ansible/utils/py3compat.py
# -*- 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')
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply