Current Path: > > lib64 > python2.7 > > > Demo > parser
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
FILES | File | 91 bytes | April 19 2020 21:13:39. | |
README | File | 1030 bytes | April 19 2020 21:13:39. | |
docstring.py | File | 27 bytes | April 19 2020 21:13:39. | |
docstring.pyc | File | 175 bytes | April 10 2024 04:58:46. | |
docstring.pyo | File | 175 bytes | April 10 2024 04:58:46. | |
example.py | File | 5722 bytes | April 19 2020 21:13:39. | |
example.pyc | File | 7204 bytes | April 10 2024 04:58:46. | |
example.pyo | File | 7204 bytes | April 10 2024 04:58:46. | |
simple.py | File | 29 bytes | April 19 2020 21:13:39. | |
simple.pyc | File | 279 bytes | April 10 2024 04:58:46. | |
simple.pyo | File | 279 bytes | April 10 2024 04:58:46. | |
source.py | File | 741 bytes | April 19 2020 21:13:39. | |
source.pyc | File | 1584 bytes | April 10 2024 04:58:46. | |
source.pyo | File | 1584 bytes | April 10 2024 04:58:46. | |
test_parser.py | File | 1185 bytes | April 10 2024 04:57:37. | |
test_parser.pyc | File | 1443 bytes | April 10 2024 04:58:46. | |
test_parser.pyo | File | 1443 bytes | April 10 2024 04:58:46. | |
test_unparse.py | File | 5569 bytes | April 19 2020 21:13:39. | |
test_unparse.pyc | File | 8654 bytes | April 10 2024 04:58:46. | |
test_unparse.pyo | File | 8654 bytes | April 10 2024 04:58:46. | |
unparse.py | File | 17258 bytes | April 19 2020 21:13:39. | |
unparse.pyc | File | 24005 bytes | April 10 2024 04:58:46. | |
unparse.pyo | File | 23918 bytes | April 10 2024 04:58:44. |
#! /usr/bin/python2.7 # (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()
SILENT KILLER Tool