def runit():
parser = OptionParser()<EOL>parser.add_option('<STR_LIT>', '<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>dest='<STR_LIT>',<EOL>type='<STR_LIT:str>',<EOL>default='<STR_LIT>')<EOL>parser.add_option('<STR_LIT>', '<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>dest='<STR_LIT:port>',<EOL>type='<STR_LIT:int>',<EOL>default=<NUM_LIT>)<EOL>parser.add_option('<STR_LIT>', '<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>dest='<STR_LIT>',<EOL>type='<STR_LIT:str>')<EOL>parser.add_option('<STR_LIT>', '<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>dest='<STR_LIT>',<EOL>action='<STR_LIT:store_true>',<EOL>default=False)<EOL>parser.add_option('<STR_LIT>', '<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>dest='<STR_LIT>',<EOL>action='<STR_LIT:store_true>',<EOL>default=False)<EOL>parser.add_option('<STR_LIT>', '<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>dest='<STR_LIT>',<EOL>type='<STR_LIT>',<EOL>choices=[str(val) for val in range(<NUM_LIT:0>, <NUM_LIT:10>)],<EOL>default=<NUM_LIT:6>)<EOL>parser.add_option('<STR_LIT>', '<STR_LIT>',<EOL>help=('''<STR_LIT>'''<EOL>'''<STR_LIT>'''),<EOL>dest='<STR_LIT:user>',<EOL>type='<STR_LIT:str>',<EOL>default='<STR_LIT>')<EOL>options, _ = parser.parse_args()<EOL>sslopts = {}<EOL>if options.tls:<EOL><INDENT>sslopts = dict(ssl_version=PROTOCOL_TLSv1)<EOL><DEDENT>if options.socket_path and os.path.exists(options.socket_path):<EOL><INDENT>options.server = None<EOL><DEDENT>client = SpamC(<EOL>options.server,<EOL>port=options.port,<EOL>socket_file=options.socket_path,<EOL>user=options.user,<EOL>gzip=options.gzip,<EOL>compress_level=int(options.compress_level),<EOL>is_ssl=options.tls,<EOL>**sslopts)<EOL>pprint.pprint(client.ping())<EOL>path = os.path.dirname(__file__)<EOL>for test in FILES:<EOL><INDENT>filename = os.path.join(path, test['<STR_LIT:name>'])<EOL>print("<STR_LIT>" % filename)<EOL>fileobj = open(filename)<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.check(fileobj))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.symbols(fileobj))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.report(fileobj))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.report_ifspam(fileobj))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.process(fileobj))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.headers(fileobj))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.learn(fileobj, test['<STR_LIT:type>']))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.tell(fileobj, '<STR_LIT>'))<EOL>print("<STR_LIT:=>" * <NUM_LIT:10>, "<STR_LIT>")<EOL>pprint.pprint(client.revoke(fileobj))<EOL><DEDENT>
run things