mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
src/clint.py: flake8 fixes [ci skip] (#10631)
This commit is contained in:
parent
256608a13b
commit
05fa1cb3f4
@ -48,7 +48,6 @@ from __future__ import unicode_literals
|
||||
|
||||
import codecs
|
||||
import copy
|
||||
import fileinput
|
||||
import getopt
|
||||
import math # for log
|
||||
import os
|
||||
@ -566,6 +565,7 @@ class _CppLintState(object):
|
||||
return
|
||||
self.record_errors_file = open(fname, 'w')
|
||||
|
||||
|
||||
_cpplint_state = _CppLintState()
|
||||
|
||||
|
||||
@ -2296,7 +2296,7 @@ def CheckSpacing(filename, clean_lines, linenum, nesting_state, error):
|
||||
line = clean_lines.elided[linenum] # get rid of comments and strings
|
||||
|
||||
# Don't try to do spacing checks for operator methods
|
||||
line = re.sub(r'operator(==|!=|<|<<|<=|>=|>>|>)\(', 'operator\(', line)
|
||||
line = re.sub(r'operator(==|!=|<|<<|<=|>=|>>|>)\(', r'operator\(', line)
|
||||
|
||||
# We allow no-spaces around = within an if: "if ( (a=Foo()) == 0 )".
|
||||
# Otherwise not. Note we only check for non-spaces on *both* sides;
|
||||
|
Loading…
Reference in New Issue
Block a user