def _get_tfa_info(self, note='two-factor verification code'):
    "\n        Get the two-factor authentication info\n        TODO - asking the user will be required for sms/phone verify\n        currently just uses the command line option\n        If there's no info available, return None\n        "
    if (self._downloader is None):
        return None
    downloader_params = self._downloader.params
    if (downloader_params.get('twofactor') is not None):
        return downloader_params['twofactor']
    return compat_getpass(('Type %s and press [Return]: ' % note))
Get the two-factor authentication info
TODO - asking the user will be required for sms/phone verify
currently just uses the command line option
If there's no info available, return None
def _get_tfa_info(self, note='two-factor verification code'):
    "\n        Get the two-factor authentication info\n        TODO - asking the user will be required for sms/phone verify\n        currently just uses the command line option\n        If there's no info available, return None\n        "
    if (self._downloader is None):
        return None
    downloader_params = self._downloader.params
    if (downloader_params.get('twofactor') is not None):
        return downloader_params['twofactor']
    return compat_getpass(('Type %s and press [Return]: ' % note))