]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Edited tornado/iostream.py via GitHub 372/head
authorWGH- <wgh@beyondunreal.com>
Mon, 3 Oct 2011 17:03:14 +0000 (21:03 +0400)
committerWGH- <wgh@beyondunreal.com>
Mon, 3 Oct 2011 17:03:14 +0000 (21:03 +0400)
tornado/iostream.py

index 0027a82bf24dec38b13f9d3df7ac996d6c37c073..cb416fb4325356989026d7c9e0a107112cd1a81c 100644 (file)
@@ -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)