#NEWLINE# def IsValidUnquotedStringCharacter( character ) : #NEWLINE# #INDENT# if ( len ( character ) == 1 ) : #NEWLINE# #INDENT# valid_characters = set ( ( ( string . ascii_letters + string . digits ) + '_$/:.-' ) ) #NEWLINE# return set ( character ) . issubset ( valid_characters ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# message = 'The function "IsValidUnquotedStringCharacter()" can only take single characters!' #NEWLINE# raise ValueError ( valid_characters )