def _write_services(service_descriptors, out):
 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')

def _write_services ( service_descriptors , out ) : 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' )
write service types .