Development of an internal social media platform with personalised dashboards for students
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.

__init__.py 536B

123456789101112131415161718192021
  1. from __future__ import absolute_import
  2. import atexit
  3. def teardown():
  4. # Workaround for multiprocessing bug where logging
  5. # is attempted after global already collected at shutdown.
  6. cancelled = set()
  7. try:
  8. import multiprocessing.util
  9. cancelled.add(multiprocessing.util._exit_function)
  10. except (AttributeError, ImportError):
  11. pass
  12. try:
  13. atexit._exithandlers[:] = [
  14. e for e in atexit._exithandlers if e[0] not in cancelled
  15. ]
  16. except AttributeError:
  17. pass