def js_classnameify ( s ) : if not '_' in s : return s return '' . join ( w [ 0 ] . upper ( ) + w [ 1 : ] . lower ( ) for w in s . split ( '_' ) )
create valiable name by concatinate strings in python
Makes a classname .
def js_classnameify(s):
  """
  Makes a classname.
  """
  if not '_' in s:
    return s
  return ''.join(w[0].upper() + w[1:].lower() for w in s.split('_'))