From: WGH- Date: Mon, 3 Oct 2011 17:03:14 +0000 (+0400) Subject: Edited tornado/iostream.py via GitHub X-Git-Tag: v2.1.1~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1057260aa1d66399fcb9899a3ed2ea87b5194bde;p=thirdparty%2Ftornado.git Edited tornado/iostream.py via GitHub --- 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)