def _ValidateVisiblePrintableAsciiNotReserved(value, name):
 for char in value:
  if (char not in _VISIBLE_PRINTABLE_ASCII):
   raise ValueError(('%r must be visible printable ASCII: %r' % (name, value)))
 if value.startswith('!'):
  raise ValueError(('%r must not start with "!": %r' % (name, value)))
 return value

def _ValidateVisiblePrintableAsciiNotReserved ( value , name ) : for char in value : if ( char not in _VISIBLE_PRINTABLE_ASCII ) : raise ValueError ( ( '%r must be visible printable ASCII: %r' % ( name , value ) ) ) if value . startswith ( '!' ) : raise ValueError ( ( '%r must not start with "!": %r' % ( name , value ) ) ) return value
checks if value is a visible printable ascii string not starting with ! .