def _remove_reader(self, reader_fd):
    self.loop.remove_reader(reader_fd)
    writer_fd = self.readers_to_writers.pop(reader_fd)
    writer_readers = self.writers_to_readers[writer_fd]
    writer_readers.remove(reader_fd)
    if (not writer_fd):
        self._remove_writer(writer_fd)
def _remove_reader(self, reader_fd):
    self.loop.remove_reader(reader_fd)
    writer_fd = self.readers_to_writers.pop(reader_fd)
    writer_readers = self.writers_to_readers[writer_fd]
    writer_readers.remove(reader_fd)
    if (not writer_fd):
        self._remove_writer(writer_fd)