aboutsummaryrefslogtreecommitdiff
path: root/paramiko/packet.py
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2016-02-07 21:19:28 +0000
committerChristopher Baines <mail@cbaines.net>2016-02-07 21:19:28 +0000
commit31b2fd0709f259961253b9cdc875ce7827abaa68 (patch)
tree863b7f1fe851d7183419916248591537a4b8b6c5 /paramiko/packet.py
parentbf855e6da326dba0c46f005eedc9f390c6c3b206 (diff)
downloadpython-paramiko-31b2fd0709f259961253b9cdc875ce7827abaa68.tar
python-paramiko-31b2fd0709f259961253b9cdc875ce7827abaa68.tar.gz
Imported Upstream version 1.16.0upstream/1.16.0upstream
Diffstat (limited to 'paramiko/packet.py')
-rw-r--r--paramiko/packet.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/paramiko/packet.py b/paramiko/packet.py
index b922000..2be2bb2 100644
--- a/paramiko/packet.py
+++ b/paramiko/packet.py
@@ -389,7 +389,8 @@ class Packetizer (object):
if self.__dump_packets:
self._log(DEBUG, util.format_binary(header, 'IN: '))
packet_size = struct.unpack('>I', header[:4])[0]
- # leftover contains decrypted bytes from the first block (after the length field)
+ # leftover contains decrypted bytes from the first block (after the
+ # length field)
leftover = header[4:]
if (packet_size - len(leftover)) % self.__block_size_in != 0:
raise SSHException('Invalid packet blocking')