ksp_compiler.py 文件源码

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

项目:SublimeKSP 作者: nojanath 项目源码 文件源码
def __call__(self, string):
            # the special argument "-" means sys.std{in,out}
            if string == '-':
                if 'r' in self._mode:
                    return sys.stdin
                elif 'w' in self._mode:
                    return sys.stdout
                else:
                    msg = _('argument "-" with mode %r') % self._mode
                    raise ValueError(msg)

            # all other arguments are used as file names
            try:
                return open(string, self._mode, self._bufsize, self._encoding, self._errors)
            except OSError as e:
                message = _("can't open '%s': %s")
                raise ArgumentTypeError(message % (string, e))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号