Created
February 27, 2014 08:54
-
-
Save fantix/9246648 to your computer and use it in GitHub Desktop.
long -> integer_types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def __init__(self, fileno, mode=None, close=True): | |
| - if not isinstance(fileno, (int, long)): | |
| + if not isinstance(fileno, integer_types): | |
| raise TypeError('fileno must be int: %r' % fileno) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment