运行flake8时出错

时间:2018-08-09 08:16:45

标签: python flake8

我最近尝试为Python3安装Flake8,此后,我收到以下错误消息:

/Users/dorsam/.atom/packages/linter/lib/linter-registry.js:159 [Linter] Error running Flake8 Error: /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pycodestyle.py:113: FutureWarning: Possible nested set at position 1
  EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
    at ChildProcess.<anonymous> (/Users/dorsam/.atom/packages/linter-flake8/node_modules/sb-exec/lib/index.js:56:20)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:554:12)

1 个答案:

答案 0 :(得分:0)

看这里:https://docs.python.org/3/library/re.html

支持嵌套集和集合操作,如Unicode技术 将来可能会添加标准#18。这将改变 语法,因此为了便于进行此更改,将在 暂时情况不明确。其中包括以 文字'['或包含文字字符序列'-','&&', '~~'和'||'。为避免警告,请使用反斜杠将其转义。