couple of doc fixes
This commit is contained in:
parent
2a03425e27
commit
1d2bd214c3
|
@ -123,7 +123,7 @@ class Channel (object):
|
||||||
It isn't necessary (or desirable) to call this method if you're going
|
It isn't necessary (or desirable) to call this method if you're going
|
||||||
to exectue a single command with L{exec_command}.
|
to exectue a single command with L{exec_command}.
|
||||||
|
|
||||||
@param term: the terminal type to emulate (for example, C{'vt100'}).
|
@param term: the terminal type to emulate (for example, C{'vt100'})
|
||||||
@type term: str
|
@type term: str
|
||||||
@param width: width (in characters) of the terminal screen
|
@param width: width (in characters) of the terminal screen
|
||||||
@type width: int
|
@type width: int
|
||||||
|
|
|
@ -155,6 +155,7 @@ class BaseSFTP (object):
|
||||||
return out
|
return out
|
||||||
|
|
||||||
def _send_packet(self, t, packet):
|
def _send_packet(self, t, packet):
|
||||||
|
#self._log(DEBUG2, 'write: %s (len=%d)' % (CMD_NAMES.get(t, '0x%02x' % t), len(packet)))
|
||||||
out = struct.pack('>I', len(packet) + 1) + chr(t) + packet
|
out = struct.pack('>I', len(packet) + 1) + chr(t) + packet
|
||||||
if self.ultra_debug:
|
if self.ultra_debug:
|
||||||
self._log(DEBUG, util.format_binary(out, 'OUT: '))
|
self._log(DEBUG, util.format_binary(out, 'OUT: '))
|
||||||
|
@ -166,5 +167,7 @@ class BaseSFTP (object):
|
||||||
if self.ultra_debug:
|
if self.ultra_debug:
|
||||||
self._log(DEBUG, util.format_binary(data, 'IN: '));
|
self._log(DEBUG, util.format_binary(data, 'IN: '));
|
||||||
if size > 0:
|
if size > 0:
|
||||||
return ord(data[0]), data[1:]
|
t = ord(data[0])
|
||||||
|
#self._log(DEBUG2, 'read: %s (len=%d)' % (CMD_NAMES.get(t), '0x%02x' % t, len(data)-1))
|
||||||
|
return t, data[1:]
|
||||||
return 0, ''
|
return 0, ''
|
||||||
|
|
|
@ -1138,7 +1138,7 @@ class Transport (threading.Thread):
|
||||||
(See the C{logging} module for more info.) SSH Channels will log
|
(See the C{logging} module for more info.) SSH Channels will log
|
||||||
to a sub-channel of the one specified.
|
to a sub-channel of the one specified.
|
||||||
|
|
||||||
@param name: new channel name for logging.
|
@param name: new channel name for logging
|
||||||
@type name: str
|
@type name: str
|
||||||
|
|
||||||
@since: 1.1
|
@since: 1.1
|
||||||
|
|
Loading…
Reference in New Issue