def _openTty(cls):
        """
        Open /dev/tty as two streams one in read, one in write mode,
        and return them.

        @return: File objects for reading and writing to /dev/tty,
                 corresponding to standard input and standard output.
        @rtype: A L{tuple} of L{io.TextIOWrapper} on Python 3.
                A L{tuple} of binary files on Python 2.
        """
        stdin = open("/dev/tty", "rb")
        stdout = open("/dev/tty", "wb")
        if _PY3:
            stdin = io.TextIOWrapper(stdin)
            stdout = io.TextIOWrapper(stdout)
        return stdin, stdout

        Open /dev/tty as two streams one in read, one in write mode,
        and return them.

        @return: File objects for reading and writing to /dev/tty,
                 corresponding to standard input and standard output.
        @rtype: A L{tuple} of L{io.TextIOWrapper} on Python 3.
                A L{tuple} of binary files on Python 2.
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/client/default.py