Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
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.

_ssl_compat.py 1.1KB

1 year ago
123456789101112131415161718192021222324252627282930313233343536373839
  1. """
  2. _ssl_compat.py
  3. websocket - WebSocket client library for Python
  4. Copyright 2023 engn33r
  5. Licensed under the Apache License, Version 2.0 (the "License");
  6. you may not use this file except in compliance with the License.
  7. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. """
  15. __all__ = ["HAVE_SSL", "ssl", "SSLError", "SSLWantReadError", "SSLWantWriteError"]
  16. try:
  17. import ssl
  18. from ssl import SSLError
  19. from ssl import SSLWantReadError
  20. from ssl import SSLWantWriteError
  21. HAVE_SSL = True
  22. except ImportError:
  23. # dummy class of SSLError for environment without ssl support
  24. class SSLError(Exception):
  25. pass
  26. class SSLWantReadError(Exception):
  27. pass
  28. class SSLWantWriteError(Exception):
  29. pass
  30. ssl = None
  31. HAVE_SSL = False