Linux newlinux5.pouyasazan.org 3.10.0-962.3.2.lve1.5.60.el7.x86_64 #1 SMP Fri Jul 23 07:07:00 EDT 2021 x86_64
LiteSpeed
Server IP : 88.99.66.243 & Your IP : 216.73.216.178
Domains :
Cant Read [ /etc/named.conf ]
User : wdbbsgxf
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
lib /
python2.7 /
site-packages /
iniparse /
Delete
Unzip
Name
Size
Permission
Date
Action
__init__.py
1.08
KB
-rw-r--r--
2010-05-09 00:06
__init__.pyc
945
B
-rw-r--r--
2014-06-10 02:34
__init__.pyo
945
B
-rw-r--r--
2014-06-10 02:34
compat.py
11.82
KB
-rw-r--r--
2010-05-08 05:21
compat.pyc
12.54
KB
-rw-r--r--
2014-06-10 02:34
compat.pyo
12.54
KB
-rw-r--r--
2014-06-10 02:34
config.py
8.11
KB
-rw-r--r--
2010-05-09 00:25
config.pyc
9.37
KB
-rw-r--r--
2014-06-10 02:34
config.pyo
9.37
KB
-rw-r--r--
2014-06-10 02:34
ini.py
20.17
KB
-rw-r--r--
2014-06-10 02:34
ini.pyc
19.94
KB
-rw-r--r--
2014-06-10 02:34
ini.pyo
19.94
KB
-rw-r--r--
2014-06-10 02:34
utils.py
1.24
KB
-rw-r--r--
2010-05-09 00:06
utils.pyc
1.39
KB
-rw-r--r--
2014-06-10 02:34
utils.pyo
1.39
KB
-rw-r--r--
2014-06-10 02:34
Save
Rename
import compat from ini import LineContainer, EmptyLine def tidy(cfg): """Clean up blank lines. This functions makes the configuration look clean and handwritten - consecutive empty lines and empty lines at the start of the file are removed, and one is guaranteed to be at the end of the file. """ if isinstance(cfg, compat.RawConfigParser): cfg = cfg.data cont = cfg._data.contents i = 1 while i < len(cont): if isinstance(cont[i], LineContainer): tidy_section(cont[i]) i += 1 elif (isinstance(cont[i-1], EmptyLine) and isinstance(cont[i], EmptyLine)): del cont[i] else: i += 1 # Remove empty first line if cont and isinstance(cont[0], EmptyLine): del cont[0] # Ensure a last line if cont and not isinstance(cont[-1], EmptyLine): cont.append(EmptyLine()) def tidy_section(lc): cont = lc.contents i = 1 while i < len(cont): if (isinstance(cont[i-1], EmptyLine) and isinstance(cont[i], EmptyLine)): del cont[i] else: i += 1 # Remove empty first line if len(cont) > 1 and isinstance(cont[1], EmptyLine): del cont[1]