def __init__(self):
AgentSSH.__init__(self)<EOL>if ('<STR_LIT>' in os.environ) and (sys.platform != '<STR_LIT:win32>'):<EOL><INDENT>conn = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)<EOL>try:<EOL><INDENT>conn.connect(os.environ['<STR_LIT>'])<EOL><DEDENT>except:<EOL><INDENT>return<EOL><DEDENT><DEDENT>elif sys.platform == '<STR_LIT:win32>':<EOL><INDENT>import win_pageant<EOL>if win_pageant.can_talk_to_agent():<EOL><INDENT>conn = win_pageant.PageantConnection()<EOL><DEDENT>else:<EOL><INDENT>return<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return<EOL><DEDENT>self._connect(conn)<EOL>
Open a session with the local machine's SSH agent, if one is running.
If no agent is running, initialization will succeed, but L{get_keys}
will return an empty tuple.

@raise SSHException: if an SSH agent is found, but speaks an
    incompatible protocol