def get_hub():
 try:
  import select
  if hasattr(select, 'poll'):
   return 'poll'
  return 'selects'
 except ImportError:
  return None

def get_hub ( ) : try : import select if hasattr ( select , 'poll' ) : return 'poll' return 'selects' except ImportError : return None
return the hub for the current thread .