def serverFactoryFor(protocol):
 factory = ServerFactory()
 factory.protocol = protocol
 return factory

def serverFactoryFor ( protocol ) : factory = ServerFactory ( ) factory . protocol = protocol return factory
helper function which provides the signature l{serverfactory} should provide .