代码拉取完成,页面将自动刷新
指向的文件为
Hey @miaaaa, Welcome to openGauss Community.
All of the projects in openGauss Community are maintained by @opengauss-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/opengauss/community/blob/master/contributors/command.en.md to find the details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
这里做开源整改改的有问题,应该改成下面这样,有权限的同学改一下吧
class _DiffCollectHandler:
# ... other code
def __call_(self, file, is_dir, base):
# ... other code
if file.endswitch(...
with open(file) as diff:
content = diff.read()
self.output.write(self.DIFF_SEPARATOR)
self.output.write(content)
self.output.flush()
# 不能再这里close self.output,这个函数会被反复调用,这里close,下次调用就会写入已经关闭的流了
def close(self):
self.output.close()
# 在下面的collect_diff_file函数中使用_DiffCollectHandler完毕后再关闭
def collect_diff_file(suite_dir):
# ... other code
if os.path.exists(result_result):
handler = _DiffCollectionHandler(...)
try:
scan_path(result_dir, handler)
finally:
# 确保流一定会关闭
handler.close()
登录 后才可以发表评论