X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Flib.py;fp=manga%2Flib.py;h=8ec9c2eb9f7666eb1383caa57e579fb956b81a3a;hb=af7300680e36fb1280cf248b897069ae5af18b08;hp=e7c531cd189375201bbc6c51a619be3ff9029e95;hpb=d8bea304f828ed02f5f1984ae1245b1074c82830;p=automanga.git diff --git a/manga/lib.py b/manga/lib.py index e7c531c..8ec9c2e 100644 --- a/manga/lib.py +++ b/manga/lib.py @@ -123,6 +123,12 @@ class imgstream(object): def __exit__(self, *exc_info): self.close() + def fileno(self): + """If reading the imgstream may block, fileno() should return + a file descriptor that can be polled. If fileno() returns + None, that should mean that reading will not block.""" + return None + def close(self): """Close this stream.""" raise NotImplementedError()