[英]Pylint throwing configparser.MissingSectionHeaderError:
I ma testing a python file using pylint我正在使用 pylint 测试 python 文件
Code is below代码如下
""" Testing the file inside the content"""
import json
file = r'test.txt'
with open(file,'r') as fr:
fd = fr.read()
print (fd)
Below is the command to test下面是测试命令
pylint code.py
Error is below错误如下
raise MissingSectionHeaderError(fpname, lineno, line)
configparser.MissingSectionHeaderError: File contains no section headers.
file: 'C:\\Users\\ayshewew\\.pylintrc', line: 2
'import json\n'
I have executed above code in jupyter notebook and working fine我已经在 jupyter notebook 中执行了上面的代码并且工作正常
My pylint is the latest version我的 pylint 是最新版本
tried试过了
python -m pylint code.py
got the output python -m pylint code.py
得到了 output
working在职的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.