def pluralize_collection(base, local_cls, referred_cls, constraint):
    "Produce an 'uncamelized', 'pluralized' class name, e.g. "
    "'SomeTerm' -> 'some_terms'"
    referred_name = referred_cls.__name__
    uncamelized = re.sub(r'[A-Z]',
                         lambda m: "_%s" % m.group(0).lower(),
                         referred_name)[1:]
    pluralized = _pluralizer.plural(uncamelized)
    return pluralized
def pluralize_collection(base, local_cls, referred_cls, constraint):
    "Produce an 'uncamelized', 'pluralized' class name, e.g. "
    "'SomeTerm' -> 'some_terms'"
    referred_name = referred_cls.__name__
    uncamelized = re.sub(r'[A-Z]',
                         lambda m: "_%s" % m.group(0).lower(),
                         referred_name)[1:]
    pluralized = _pluralizer.plural(uncamelized)
    return pluralized
def pluralize_collection ( base , local_cls , referred_cls , constraint ) : "'SomeTerm' -> 'some_terms'" referred_name = referred_cls . __name__ uncamelized = re . sub ( r'[A-Z]' , lambda m : "_%s" % m . group ( 0 ) . lower ( ) , referred_name ) [ 1 : ] pluralized = _pluralizer . plural ( uncamelized ) return pluralized
Produce an 'uncamelized', 'pluralized' class name, e.g.
Produce an uncamelized pluralized class name e . g .