textio.py 文件源码

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

项目:OpenXMolar 作者: debasishm89 项目源码 文件源码
def __logfile_error(self, e):
        """
        Shows an error message to standard error
        if the log file can't be written to.

        Used internally.

        @type  e: Exception
        @param e: Exception raised when trying to write to the log file.
        """
        from sys import stderr
        msg = "Warning, error writing log file %s: %s\n"
        msg = msg % (self.logfile, str(e))
        stderr.write(DebugLog.log_text(msg))
        self.logfile = None
        self.fd      = None
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号