

def _write_services(service_descriptors, out):
    'Write Service types.\n\n  Args:\n    service_descriptors: List of ServiceDescriptor instances from which to\n      generate services.\n    out: Indent writer used for generating text.\n  '
    for service in (service_descriptors or []):
        (out << '')
        (out << '')
        (out << ('class %s(remote.Service):' % service.name))
        with out.indent():
            if service.methods:
                _write_methods(service.methods, out)
            else:
                (out << '')
                (out << 'pass')

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/generate_python.py _write_services/original