def supportsThreads(self):
        """
        Can threads be created?

        @return: C{True} if the threads are supported on the current platform.
        @rtype: C{bool}
        """
        try:
            import threading
            return threading is not None # shh pyflakes
        except ImportError:
            return False

        Can threads be created?

        @return: C{True} if the threads are supported on the current platform.
        @rtype: C{bool}
        
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/runtime.py