def _serverFromStringLegacy(reactor, description, default):
 (nameOrPlugin, args, kw) = _parseServer(description, None, default)
 if (type(nameOrPlugin) is not str):
  plugin = nameOrPlugin
  return plugin.parseStreamServer(reactor, *args, **kw)
 else:
  name = nameOrPlugin
 args = (args[:1] + args[2:])
 return _endpointServerFactories[name](reactor, *args, **kw)

def _serverFromStringLegacy ( reactor , description , default ) : ( nameOrPlugin , args , kw ) = _parseServer ( description , None , default ) if ( type ( nameOrPlugin ) is not str ) : plugin = nameOrPlugin return plugin . parseStreamServer ( reactor , * args , ** kw ) else : name = nameOrPlugin args = ( args [ : 1 ] + args [ 2 : ] ) return _endpointServerFactories [ name ] ( reactor , * args , ** kw )
underlying implementation of l{serverfromstring} which avoids exposing the deprecated default argument to anything but l{strports .