#NEWLINE# def CamelCase( s ) : #NEWLINE# #INDENT# "CamelCase a string so that it is more readable as a variable name.\n\n  Camelcases a string, begining new words after any instances of '.', '_',\n      '/', or '-'.\n\n  Args:\n    s: (str) A string.\n  Returns:\n    s, with the first letter of each word capitalized.\n  " #NEWLINE# title = ( lambda x : ( ( x [ 0 ] . upper ( ) + x [ 1 : ] ) if x else x ) ) #NEWLINE# return '' . join ( [ title ( title ) for x in _WORD_SPLIT_PATTERN . split ( s ) ] )