summaryrefslogtreecommitdiff
path: root/paramiko/packet.py
diff options
context:
space:
mode:
authorJeremy T. Bouse <jbouse@debian.org>2009-11-27 16:25:55 -0500
committerJeremy T. Bouse <jbouse@debian.org>2009-11-27 16:28:36 -0500
commitf7b892905c62b94a6e54d115ee2d6d32d66af013 (patch)
treee98e4d71f62f37a514363fa35fff57390fab934e /paramiko/packet.py
parente01182b1e91d796245e90e484d46416e52d8fd7d (diff)
downloadpython-paramiko-f7b892905c62b94a6e54d115ee2d6d32d66af013.tar
python-paramiko-f7b892905c62b94a6e54d115ee2d6d32d66af013.tar.gz
Imported Upstream version 1.7.6
Closes: #543784
Diffstat (limited to 'paramiko/packet.py')
-rw-r--r--paramiko/packet.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/paramiko/packet.py b/paramiko/packet.py
index 4bde2f7..9072fbe 100644
--- a/paramiko/packet.py
+++ b/paramiko/packet.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2003-2007 Robey Pointer <robey@lag.net>
+# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
@@ -268,11 +268,11 @@ class Packetizer (object):
Read a line from the socket. We assume no data is pending after the
line, so it's okay to attempt large reads.
"""
- buf = ''
+ buf = self.__remainder
while not '\n' in buf:
buf += self._read_timeout(timeout)
n = buf.index('\n')
- self.__remainder += buf[n+1:]
+ self.__remainder = buf[n+1:]
buf = buf[:n]
if (len(buf) > 0) and (buf[-1] == '\r'):
buf = buf[:-1]