

def _write_enums(enum_descriptors, out):
    'Write nested and non-nested Enum types.\n\n  Args:\n    enum_descriptors: List of EnumDescriptor objects from which to generate\n      enums.\n    out: Indent writer used for generating text.\n  '
    for enum in (enum_descriptors or []):
        (out << '')
        (out << '')
        (out << ('class %s(messages.Enum):' % enum.name))
        (out << '')
        with out.indent():
            if (not enum.values):
                (out << 'pass')
            else:
                for enum_value in enum.values:
                    (enum_value << ('%s = %s' % (enum_value.name, enum_value.number)))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/generate_python.py _write_enums/VarMisuse@96/192 `out`->`enum_value`