parameters: ()
return_statement: return _open_terminal()
docstring: master_open() -> (master_fd, slave_name)
      Open a pty master and return the fd, and the filename of the slave end.
      Deprecated, use openpty() instead.
docstring_summary: master_open() -> (master_fd, slave_name)
      Open a pty master and return the fd, and the filename of the slave end.
      Deprecated, use openpty() instead.
docstring_tokens: master_open () - > ( master_fd slave_name ) Open a pty master and return the fd and the filename of the slave end . Deprecated use openpty () instead .
function: def master_open():
      """master_open() -> (master_fd, slave_name)
      Open a pty master and return the fd, and the filename of the slave end.
      Deprecated, use openpty() instead."""
  
      try:
          master_fd, slave_fd = os.openpty()
      except (AttributeError, OSError):
          pass
      else:
          slave_name = os.ttyname(slave_fd)
          os.close(slave_fd)
          return master_fd, slave_name
  
      return _open_terminal()
function_tokens: def master_open ( ) : try : master_fd , slave_fd = os . openpty ( ) except ( AttributeError , OSError ) : pass else : slave_name = os . ttyname ( slave_fd ) os . close ( slave_fd ) return master_fd , slave_name return _open_terminal ( )