def _isASCII(s):
 for c in s:
  if (ord(c) > 127):
   return False
 return True

def _isASCII ( s ) : for c in s : if ( ord ( c ) > 127 ) : return False return True
true if s consists entirely of ascii characters .