From 4a56af4a2b1e982dd325f9c2d86ddd423280794a Mon Sep 17 00:00:00 2001 From: benoitc Date: Thu, 4 Mar 2010 19:29:22 +0100 Subject: [PATCH] typo. --- gunicorn/http/tee.py | 1 - gunicorn/util.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/gunicorn/http/tee.py b/gunicorn/http/tee.py index 7940968a..57291775 100644 --- a/gunicorn/http/tee.py +++ b/gunicorn/http/tee.py @@ -135,7 +135,6 @@ class TeeInput(object): def _tee(self, length): """ fetch partial body""" while True: - print len(self._buf) chunk, self.buf = self.parser.filter_body(self.buf) if chunk: self.tmp.write(chunk) diff --git a/gunicorn/util.py b/gunicorn/util.py index 3f3da4fa..1cc75b7f 100644 --- a/gunicorn/util.py +++ b/gunicorn/util.py @@ -90,7 +90,7 @@ def close(sock): pass def read_partial(sock, length, buf=None): - tmp_buf = skt.recv(length) + tmp_buf = sock.recv(length) if not buf: return tmp_buf