def _serve_stdio(self):
        origstdin = sys.stdin
        origstdout = sys.stdout
        sys.stdin = open(os.devnull, "r")
        sys.stdout = open(os.devnull, "w")
        sys.stderr = open(os.devnull, "w")
        conn = rpyc.classic.connect_pipes(origstdin, origstdout)
        try:
            try:
                conn.serve_all()
            except __HOLE__:
                print( "User interrupt!" )
        finally:
            conn.close()
dataset/ETHPy150Open tomerfiliba/rpyc/bin/rpyc_classic.py/ClassicServer._serve_stdio