def _toCSSname(DOMname):
 def _doDOMtoCSSname2(m):
  return ('-' + m.group(0).lower())
 return _reDOMtoCSSname.sub(_doDOMtoCSSname2, DOMname)

def _toCSSname ( DOMname ) : def _doDOMtoCSSname2 ( m ) : return ( '-' + m . group ( 0 ) . lower ( ) ) return _reDOMtoCSSname . sub ( _doDOMtoCSSname2 , DOMname )
return cssname for given domname e .