Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for _exit (0.18 sec)

  1. fastapi/dependencies/utils.py

                background_tasks=background_tasks,
                response=response,
                dependency_overrides_provider=dependency_overrides_provider,
                dependency_cache=dependency_cache,
                async_exit_stack=async_exit_stack,
            )
            (
                sub_values,
                sub_errors,
                background_tasks,
                _,  # the subdependency returns the same response we have
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  2. fastapi/concurrency.py

        except Exception as e:
            ok = bool(
                await anyio.to_thread.run_sync(
                    cm.__exit__, type(e), e, None, limiter=exit_limiter
                )
            )
            if not ok:
                raise e
        else:
            await anyio.to_thread.run_sync(
                cm.__exit__, None, None, None, limiter=exit_limiter
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Mon Dec 25 17:57:35 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  3. docs_src/dependencies/tutorial010.py

    class MySuperContextManager:
        def __init__(self):
            self.db = DBSession()
    
        def __enter__(self):
            return self.db
    
        def __exit__(self, exc_type, exc_value, traceback):
            self.db.close()
    
    
    async def get_db():
        with MySuperContextManager() as db:
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 292 bytes
    - Viewed (0)
  4. .github/actions/notify-translations/app/main.py

        logging.info(f"PR #{pr.number} has labels: {label_strs}")
        if not langs or lang_all_label not in label_strs:
            logging.info(f"PR #{pr.number} doesn't seem to be a translation PR, skipping")
            sys.exit(0)
    
        # Generate translation map, lang ID to discussion
        discussions = get_graphql_translation_discussions(settings=settings)
        lang_to_discussion_map: Dict[str, AllDiscussionsDiscussionNode] = {}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
  5. .github/actions/people/app/main.py

        if (
            people_old_content == new_people_content
            and github_sponsors_old_content == new_github_sponsors_content
        ):
            logging.info("The FastAPI People data hasn't changed, finishing.")
            sys.exit(0)
        people_path.write_text(new_people_content, encoding="utf-8")
        github_sponsors_path.write_text(new_github_sponsors_content, encoding="utf-8")
        logging.info("Setting up GitHub Actions git user")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Mar 26 17:38:21 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  6. fastapi/routing.py

                async with AsyncExitStack() as async_exit_stack:
                    solved_result = await solve_dependencies(
                        request=request,
                        dependant=dependant,
                        body=body,
                        dependency_overrides_provider=dependency_overrides_provider,
                        async_exit_stack=async_exit_stack,
                    )
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  7. ci/official/containers/linux_arm64/devel.usertools/squash_testlogs.py

    result = JUnitXml()
    try:
      files = subprocess.check_output(
          ["grep", "-rlE", '(failures|errors)="[1-9]', sys.argv[1]]
      )
    except subprocess.CalledProcessError as e:
      print("No failures found to log!")
      exit(0)
    
    # For test cases, only show the ones that failed that have text (a log)
    seen = collections.Counter()
    runfiles_matcher = re.compile(r"(/.*\.runfiles/)")
    
    
    for f in files.strip().splitlines():
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 19:00:37 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  8. .github/actions/comment-docs-preview-in-pr/app/main.py

            logging.error(f"Error parsing event file: {e.errors()}")
            sys.exit(0)
        use_pr: Union[PullRequest, None] = None
        for pr in repo.get_pulls():
            if pr.head.sha == event.workflow_run.head_commit.id:
                use_pr = pr
                break
        if not use_pr:
            logging.error(f"No PR found for hash: {event.workflow_run.head_commit.id}")
            sys.exit(0)
        github_headers = {
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Jan 09 15:02:53 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. bin/diff_yaml.py

                            help="Ignore annotations during comparison")
    
        return parser
    
    
    if __name__ == "__main__":
        parser = get_parser()
        args = parser.parse_args()
    Python
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Wed Mar 03 16:14:57 GMT 2021
    - 4.5K bytes
    - Viewed (0)
  10. configure.py

      bazel_executable = which('bazel')
      if bazel_executable is None:
        bazel_executable = which('bazelisk')
        if bazel_executable is None:
          print('Cannot find bazel. Please install bazel/bazelisk.')
          sys.exit(1)
    
      stderr = open(os.devnull, 'wb')
      curr_version = run_shell([bazel_executable, '--version'],
                               allow_non_zero=True,
                               stderr=stderr)
    Python
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 18:25:36 GMT 2024
    - 53.8K bytes
    - Viewed (0)
Back to top