7

Pylint 正在为子进程模块返回大量误报:

E1101:184,7:resetboard: Instance of 'Popen' has no 'poll' member
E1101:188,4:resetboard: Instance of 'Popen' has no 'terminate' member
# etc.

我怎样才能解决这个问题?

4

1 回答 1

7

此错误已在logilab-astng包中确定: http ://www.logilab.org/ticket/46273

他们创建了一个名为的新项目pylint-brain,该项目将是一组插件并包含在logilab-astng. 同时,您可以从此处克隆或下载最新代码:https ://bitbucket.org/logilab/pylint-brain/overview

说明在上述网站上,但基本方法是:

  1. 提炼pylint-brain
  2. 将“.../site-packages/logilab/astng/brain”重命名为“.../site-packages/logilab/astng/brain-old”
  3. 将提取的“brain”文件夹复制或软链接到“.../site-packages/logilab/astng/brain”
  4. 验证 pylint 仍然运行并且subprocess.Popen问题已修复
于 2013-01-11T14:38:13.517 回答