Commit 01f78c6b authored by Denis Bilenko's avatar Denis Bilenko

select: recognize long parameters as well, as the standard select does

parent 5f811f84
...@@ -14,7 +14,7 @@ def get_fileno(obj): ...@@ -14,7 +14,7 @@ def get_fileno(obj):
try: try:
fileno_f = obj.fileno fileno_f = obj.fileno
except AttributeError: except AttributeError:
if not isinstance(obj, int): if not isinstance(obj, (int, long)):
raise TypeError('argument must be an int, or have a fileno() method: %r' % (obj, )) raise TypeError('argument must be an int, or have a fileno() method: %r' % (obj, ))
return obj return obj
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment