create-github-release.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:optimalvibes 作者: littlemika 项目源码 文件源码
def _init_github_account(self):
        try:
            info = netrc.netrc().authenticators(self._NETRC_MACHINE)
            if info is not None:
                self._username = info[0]
                self._password = info[2]
                compat_print('Using GitHub credentials found in .netrc...')
                return
            else:
                compat_print('No GitHub credentials found in .netrc')
        except (IOError, netrc.NetrcParseError):
            compat_print('Unable to parse .netrc')
        self._username = compat_input(
            'Type your GitHub username or email address and press [Return]: ')
        self._password = compat_getpass(
            'Type your GitHub password and press [Return]: ')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号