def _renameTable(tname):
 tname = re_upper.sub('_\\1', tname)
 if tname.startswith('_'):
  tname = tname[1:]
 return tname.lower()

def _renameTable ( tname ) : tname = re_upper . sub ( '_\\1' , tname ) if tname . startswith ( '_' ) : tname = tname [ 1 : ] return tname . lower ( )
build the name of a table .