()
Simple test program to disassemble a file.
Simple test program to disassemble a file.
Simple test program to disassemble a file .
def _test():
    """Simple test program to disassemble a file."""
    import argparse

    parser = argparse.ArgumentParser()
    parser.add_argument('infile', type=argparse.FileType('rb'), nargs='?', default='-')
    args = parser.parse_args()
    with args.infile as infile:
        source = infile.read()
    code = compile(source, args.infile.name, "exec")
    dis(code)
def _test ( ) : import argparse parser = argparse . ArgumentParser ( ) parser . add_argument ( 'infile' , type = argparse . FileType ( 'rb' ) , nargs = '?' , default = '-' ) args = parser . parse_args ( ) with args . infile as infile : source = infile . read ( ) code = compile ( source , args . infile . name , "exec" ) dis ( code )