__init__.py 文件源码

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

项目:SFT 作者: xumi1993 项目源码 文件源码
def _resolve_capability(self, atom):
        """Return a terminal code for a capname or a sugary name, or an empty
        Unicode.

        The return value is always Unicode, because otherwise it is clumsy
        (especially in Python 3) to concatenate with real (Unicode) strings.

        """
        code = tigetstr(self._sugar.get(atom, atom))
        if code:
            # See the comment in ParametrizingString for why this is latin1.
            return code.decode('latin1')
        return ''
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号