Closed spr-equinox closed 5 months ago
self.xml_write_simple_tag(f, "Count", self.metadata["Count"])
此操作为 xml_write_simple_tag 传入了 int。而函数中的 str() 转换被 pylint 自动优化掉了。运行时会卡死,可以改源码捕获到错误。
xml_write_simple_tag
int
str()
'int' object has no attribute 'replace' 'int' object has no attribute 'replace' 'int' object has no attribute 'replace' 'int' object has no attribute 'replace' 'int' object has no attribute 'replace' 'int' object has no attribute 'replace'
改好了
此操作为
xml_write_simple_tag
传入了int
。而函数中的str()
转换被 pylint 自动优化掉了。运行时会卡死,可以改源码捕获到错误。