Ejemplo n.º 1
0
        def callback():

            with ExitStack() as stack:
                stack.enter_context(self.output)
                stack.enter_context(suppress(SystemExit))
                prefetch_files(args, self.semaphore)
Ejemplo n.º 2
0
def console_entry():

    signal.signal(signal.SIGINT, sigint_handler)
    signal.signal(signal.SIGTERM, sigint_handler)
    args = parser.parse_args()
    prefetch_files(args)
Ejemplo n.º 3
0
def console_entry():

    signal.signal(signal.SIGINT, sigint_handler)
    args = parser.parse_args()
    prefetch_files(args)
Ejemplo n.º 4
0
        def callback():

            with ExitStack() as stack:
                stack.enter_context(self.output)
                stack.enter_context(suppress(SystemExit))
                prefetch_files(args, self.semaphore)