Exemple #1
0
 def serve_forever(self):
     '''Handle one request at a time until shutdown.'''
     self.r_event.start()
     mainloop()
Exemple #2
0
 def serve_forever(self):
     '''Handle one request at a time until shutdown.'''
     self.r_event.start()
     mainloop()
Exemple #3
0
                host = prer_args.pop('redishost')
                channel = prer_args.pop('redischannel')
                f = RedisFile(host, channel)
            else:  # Default Output Method
                f = sys.stdout

            prer_instance = prer_class(f, **prer_args)
            # if not prer_args:
            #     prer = PreR(f)
            # else:
            #     prer = PreR(f, **prer_args)

            self._prers.append(prer_instance)

    @property
    def prers(self):
        return self._prers

    @property
    def window_size(self):
        return self._window_size

    @property
    def input(self):
        return self._input


if __name__ == '__main__':
    options = Options()
    mainloop(options)