def _is_unorderable_exception(e):
 if PY36:
  return ("'>' not supported between instances of" in str(e))
 elif PY3:
  return ('unorderable' in str(e))
 return False

def _is_unorderable_exception ( e ) : if PY36 : return ( "'>' not supported between instances of" in str ( e ) ) elif PY3 : return ( 'unorderable' in str ( e ) ) return False
return a boolean if we an unorderable exception error message these are different error message for py>=3<=3 .