def getRush():
 if importCtypesFailed:
  return None
 policy = getThreadPolicy(getDefault=False, flavour=THREAD_TIME_CONSTRAINT_POLICY)
 default = getThreadPolicy(getDefault=True, flavour=THREAD_TIME_CONSTRAINT_POLICY)
 return (policy.period != default.period)

def getRush ( ) : if importCtypesFailed : return None policy = getThreadPolicy ( getDefault = False , flavour = THREAD_TIME_CONSTRAINT_POLICY ) default = getThreadPolicy ( getDefault = True , flavour = THREAD_TIME_CONSTRAINT_POLICY ) return ( policy . period != default . period )
determine whether or not we are in rush mode .