def _getWriters(reactor):
 if IReactorFDSet.providedBy(reactor):
  return reactor.getWriters()
 elif ('IOCP' in reactor.__class__.__name__):
  return reactor.handles
 else:
  raise Exception(('Cannot find writers on %r' % (reactor,)))

def _getWriters ( reactor ) : if IReactorFDSet . providedBy ( reactor ) : return reactor . getWriters ( ) elif ( 'IOCP' in reactor . __class__ . __name__ ) : return reactor . handles else : raise Exception ( ( 'Cannot find writers on %r' % ( reactor , ) ) )
like l{ireactorfdset .