GRAYBYTE WORDPRESS FILE MANAGER3845

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib64/python2.7/Demo/parser/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib64/python2.7/Demo/parser//test_parser.py
#! /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()

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
June 15 2024 08:34:37
root / root
0755
FILES
0.089 KB
April 19 2020 21:13:39
root / root
0644
README
1.006 KB
April 19 2020 21:13:39
root / root
0644
docstring.py
0.026 KB
April 19 2020 21:13:39
root / root
0644
docstring.pyc
0.171 KB
April 10 2024 04:58:46
root / root
0644
docstring.pyo
0.171 KB
April 10 2024 04:58:46
root / root
0644
example.py
5.588 KB
April 19 2020 21:13:39
root / root
0644
example.pyc
7.035 KB
April 10 2024 04:58:46
root / root
0644
example.pyo
7.035 KB
April 10 2024 04:58:46
root / root
0644
simple.py
0.028 KB
April 19 2020 21:13:39
root / root
0644
simple.pyc
0.272 KB
April 10 2024 04:58:46
root / root
0644
simple.pyo
0.272 KB
April 10 2024 04:58:46
root / root
0644
source.py
0.724 KB
April 19 2020 21:13:39
root / root
0644
source.pyc
1.547 KB
April 10 2024 04:58:46
root / root
0644
source.pyo
1.547 KB
April 10 2024 04:58:46
root / root
0644
test_parser.py
1.157 KB
April 10 2024 04:57:37
root / root
0755
test_parser.pyc
1.409 KB
April 10 2024 04:58:46
root / root
0644
test_parser.pyo
1.409 KB
April 10 2024 04:58:46
root / root
0644
test_unparse.py
5.438 KB
April 19 2020 21:13:39
root / root
0644
test_unparse.pyc
8.451 KB
April 10 2024 04:58:46
root / root
0644
test_unparse.pyo
8.451 KB
April 10 2024 04:58:46
root / root
0644
unparse.py
16.854 KB
April 19 2020 21:13:39
root / root
0644
unparse.pyc
23.442 KB
April 10 2024 04:58:46
root / root
0644
unparse.pyo
23.357 KB
April 10 2024 04:58:44
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF