From 1057260aa1d66399fcb9899a3ed2ea87b5194bde Mon Sep 17 00:00:00 2001 From: WGH- Date: Mon, 3 Oct 2011 21:03:14 +0400 Subject: [PATCH] Edited tornado/iostream.py via GitHub --- tornado/iostream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/iostream.py b/tornado/iostream.py index 0027a82bf..cb416fb43 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -161,7 +161,7 @@ class IOStream(object): ``callback`` will be empty. """ assert not self._read_callback, "Already reading" - assert isinstance(num_bytes, int) + assert isinstance(num_bytes, (int, long)) self._read_bytes = num_bytes self._read_callback = stack_context.wrap(callback) self._streaming_callback = stack_context.wrap(streaming_callback) -- 2.47.2