common.py 文件源码

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

项目:optimalvibes 作者: littlemika 项目源码 文件源码
def _debug_cmd(self, args, exe=None):
        if not self.params.get('verbose', False):
            return

        str_args = [decodeArgument(a) for a in args]

        if exe is None:
            exe = os.path.basename(str_args[0])

        try:
            import pipes
            shell_quote = lambda args: ' '.join(map(pipes.quote, str_args))
        except ImportError:
            shell_quote = repr
        self.to_screen('[debug] %s command line: %s' % (
            exe, shell_quote(str_args)))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号