Commit 5f0e1b88 authored by Denis Bilenko's avatar Denis Bilenko

fix typo in an error message

parent 11e1f3f8
......@@ -11,7 +11,7 @@ def get_fileno(obj):
f = obj.fileno
except AttributeError:
if not isinstance(obj, int):
raise TypeError("Must be int of have file() method: %r" % (obj, ))
raise TypeError("Must be int or have file() method: %r" % (obj, ))
return obj
else:
return f()
......
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