Skip to content

Commit

Permalink
Closes psf#6565; Add documentation to certs.where.
Browse files Browse the repository at this point in the history
  • Loading branch information
tanrbobanr committed Jan 4, 2024
1 parent 72eccc8 commit d41fec3
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/requests/certs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@
environment, you can change the definition of where() to return a separately
packaged CA bundle.
"""
from certifi import where
from certifi import where as _where


def where() -> str:
"""Returns the path of the default CA-certs bundle that is included with
the requests package. This function is essentially an alias of
`certify.where`.
Note that the default path is not necessarily the one being used, as it can
be overridden through ``requests.Session().verify``,
``requests.Session().merge_environment_settings``,
``requests.get(verify=...)``, and others.
"""
return _where()


if __name__ == "__main__":
print(where())
print(_where())

0 comments on commit d41fec3

Please sign in to comment.