Skip to content

Instantly share code, notes, and snippets.

@fantix
Created February 27, 2014 08:54
Show Gist options
  • Select an option

  • Save fantix/9246648 to your computer and use it in GitHub Desktop.

Select an option

Save fantix/9246648 to your computer and use it in GitHub Desktop.
long -> integer_types
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