def _make_thread(self):
    if (not pynput):
        raise ValueError(INSTALL_ERROR)
    if platform.platform().startswith('Darwin'):
        if (getpass.getuser() != 'root'):
            log.warning(DARWIN_ROOT_WARNING, sys.argv[0])
    log.info('Starting to listen for keyboard input')
    return Listener(self._press, self._release)
def _make_thread(self):
    if (not pynput):
        raise ValueError(INSTALL_ERROR)
    if platform.platform().startswith('Darwin'):
        if (getpass.getuser() != 'root'):
            log.warning(DARWIN_ROOT_WARNING, sys.argv[0])
    log.info('Starting to listen for keyboard input')
    return Listener(self._press, self._release)