class_docstr: Selector abstract base class.
  
  A selector supports registering file objects to be monitored for specific
  I/O events.
  
  A file object is a file descriptor or any object with a `fileno()` method.
  An arbitrary object can be attached to the file object, which can be used
  for example to store context information, a callback, etc.
  
  A selector can use various implementations (select(), poll(), epoll()...)
  depending on the platform. The default `Selector` class uses the most
  efficient implementation on the current platform.
class_docstr_tok: ["Selector","abstract","base","class",".","A","selector","supports","registering","file","objects","to","be","monitored","for","specific","I\/O","events",".","A","file","object","is","a","file","descriptor","or","any","object","with","a","`","fileno","(",")","`","method",".","An","arbitrary","object","can","be","attached","to","the","file","object",",","which","can","be","used","for","example","to","store","context","information",",","a","callback",",","etc",".","A","selector","can","use","various","implementations","(","select","(",")",",","poll","(",")",",","epoll","(",")","...",")","depending","on","the","platform",".","The","default","`","Selector","`","class","uses","the","most","efficient","implementation","on","the","current","platform","."]
docstr: Unregister a file object.
  
  Parameters:
  fileobj -- file object or file descriptor
  
  Returns:
  SelectorKey instance
  
  Raises:
  KeyError if fileobj is not registered
  
  Note:
  If fileobj is registered but has since been closed this does
  *not* raise OSError (even if the wrapped syscall does)
code: def unregister(self, fileobj):
      """Unregister a file object.
  
      Parameters:
      fileobj -- file object or file descriptor
  
      Returns:
      SelectorKey instance
  
      Raises:
      KeyError if fileobj is not registered
  
      Note:
      If fileobj is registered but has since been closed this does
      *not* raise OSError (even if the wrapped syscall does)
      """
      raise NotImplementedError
  
imports: from __future__ import absolute_import
  from abc import ABCMeta, abstractmethod
  from collections import namedtuple
  from errno import EINTR
  import math
  import select
  import sys
  from kafka.vendor import six
label_desc: Use image node_id 2 for calling the BaseSelector obj's underlying member method code with example usage: obj.unregister(fileobj) without return types