Skip to content

Commit

Permalink
Merge pull request tornadoweb#372 from WGH-/patch-1
Browse files Browse the repository at this point in the history
tornado/iostream.py - long type in read_bytes
  • Loading branch information
bdarnell committed Oct 4, 2011
2 parents 420ad08 + 1057260 commit 9341522
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/iostream.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def read_bytes(self, num_bytes, callback, streaming_callback=None):
``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)
Expand Down

0 comments on commit 9341522

Please sign in to comment.