Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

src/c/i/circuits-3.0.0.dev/circuits/io/file.py   circuits(Download)
from circuits.core import handler, Component, Event
from circuits.core.pollers import BasePoller, Poller
from circuits.six import binary_type, string_types, PY3
 
from .events import close, closed, eof, error, opened, read, ready
 
        if isinstance(self._filename, string_types[0]):
            kwargs = {"encoding": self._encoding} if PY3 else {}
            self._fd = open(self.filename, self.mode, **kwargs)
        else: