CHips L MINI SHELL

CHips L pro

Current Path : /usr/lib/python2.7/dist-packages/twisted/internet/test/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/internet/test/process_cli.py

import sys, os
try:
    # On Windows, stdout is not opened in binary mode by default,
    # so newline characters are munged on writing, interfering with
    # the tests.
    import msvcrt
    msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY)
except ImportError:
    pass


# Loop over each of the arguments given and print it to stdout
for arg in sys.argv[1:]:
    res = arg + chr(0)

    if sys.version_info < (3, 0):
        stdout = sys.stdout
    else:
        res = res.encode("utf8", "surrogateescape")
        stdout = sys.stdout.buffer

    stdout.write(res)
    stdout.flush()

Copyright 2K16 - 2K18 Indonesian Hacker Rulez