From 8c8d0a81ad41a5a4040823049f6548f07ac531b3 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Thu, 17 Nov 2011 15:33:22 -0800 Subject: [PATCH] Don't mix tabs and spaces Re #1 --- ssh/server.py | 19 ++++++++++--------- ssh/transport.py | 24 +++++++++++++----------- 2 files changed, 23 insertions(+), 20 deletions(-) diff --git a/ssh/server.py b/ssh/server.py index 524f69e..12d21d0 100644 --- a/ssh/server.py +++ b/ssh/server.py @@ -496,17 +496,18 @@ class ServerInterface (object): def check_channel_forward_agent_request(self, channel): """ - Determine if the client will be provided with an forward agent session. If this - method returns C{True}, the server will allow SSH Agent forwarding. + Determine if the client will be provided with an forward agent session. + If this method returns C{True}, the server will allow SSH Agent + forwarding. - The default implementation always returns C{False}. + The default implementation always returns C{False}. - @param channel: the L{Channel} the request arrived on - @type channel: L{Channel} - @return: C{True} if the AgentForward was loaded; C{False} if not - @rtype: bool - """ - return False + @param channel: the L{Channel} the request arrived on + @type channel: L{Channel} + @return: C{True} if the AgentForward was loaded; C{False} if not + @rtype: bool + """ + return False def check_channel_direct_tcpip_request(self, chanid, origin, destination): """ diff --git a/ssh/transport.py b/ssh/transport.py index 6855fb9..55dea59 100644 --- a/ssh/transport.py +++ b/ssh/transport.py @@ -673,18 +673,20 @@ class Transport (threading.Thread): prematurely """ return self.open_channel('x11', src_addr=src_addr) - - def open_forward_agent_channel(self): - """ - Request a new channel to the client, of type C{"auth-agent@openssh.com"}. - This is just an alias for C{open_channel('auth-agent@openssh.com')}. - @return: a new L{Channel} - @rtype: L{Channel} - @raise SSHException: if the request is rejected or the session ends - prematurely - """ - return self.open_channel('auth-agent@openssh.com') + def open_forward_agent_channel(self): + """ + Request a new channel to the client, of type + C{"auth-agent@openssh.com"}. + + This is just an alias for C{open_channel('auth-agent@openssh.com')}. + @return: a new L{Channel} + @rtype: L{Channel} + + @raise SSHException: if the request is rejected or the session ends + prematurely + """ + return self.open_channel('auth-agent@openssh.com') def open_forwarded_tcpip_channel(self, (src_addr, src_port), (dest_addr, dest_port)): """