runner.py 文件源码

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

项目:SlackJira 作者: Rastii 项目源码 文件源码
def __call__(self, parser, namespace, values, option_string=None):
        file_location = values if values else self.default

        config = ConfigParser.ConfigParser()
        try:
            with open(file_location) as fp:
                config.readfp(fp)
        except (IOError, ConfigParser.Error) as e:
            raise argparse.ArgumentError(self, "Unable to read URL file: {}".format(e))

        setattr(namespace, self.dest, config)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号