def get_hub_class():
 global _threadlocal
 try:
  hubtype = _threadlocal.Hub
 except AttributeError:
  hubtype = None
 if (hubtype is None):
  hubtype = _threadlocal.Hub = Hub
 return hubtype

def get_hub_class ( ) : global _threadlocal try : hubtype = _threadlocal . Hub except AttributeError : hubtype = None if ( hubtype is None ) : hubtype = _threadlocal . Hub = Hub return hubtype
return the type of hub to use for the current thread .