certs.py 453 B

12345678910111213141516171819
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. requests.certs
  5. ~~~~~~~~~~~~~~
  6. This module returns the preferred default CA certificate bundle. There is
  7. only one — the one from the certifi package.
  8. If you are packaging Requests, e.g., for a Linux distribution or a managed
  9. environment, you can change the definition of where() to return a separately
  10. packaged CA bundle.
  11. """
  12. from certifi import where
  13. if __name__ == '__main__':
  14. print(where())