Dieses Repository enthält Python-Dateien die im Rahmen des Wahlpflichtmoduls "Informationssysteme in der Medizintechnik" (Dozent: Prof. Dr. Oliver Hofmann) erstellt wurden und verwaltet deren Versionskontrolle.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

core.py 836B

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. """
  4. certifi.py
  5. ~~~~~~~~~~
  6. This module returns the installation location of cacert.pem.
  7. """
  8. import os
  9. import warnings
  10. class DeprecatedBundleWarning(DeprecationWarning):
  11. """
  12. The weak security bundle is being deprecated. Please bother your service
  13. provider to get them to stop using cross-signed roots.
  14. """
  15. def where():
  16. f = os.path.dirname(__file__)
  17. return os.path.join(f, 'cacert.pem')
  18. def old_where():
  19. warnings.warn(
  20. "The weak security bundle has been removed. certifi.old_where() is now an alias "
  21. "of certifi.where(). Please update your code to use certifi.where() instead. "
  22. "certifi.old_where() will be removed in 2018.",
  23. DeprecatedBundleWarning
  24. )
  25. return where()
  26. if __name__ == '__main__':
  27. print(where())