diff options
author | Daniel Hahler <git@thequod.de> | 2019-07-30 07:32:47 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-30 07:32:47 +0200 |
commit | 35ec60f73a5d9f1ad9393bb1f645c624e67fdb26 (patch) | |
tree | cdab39bdae9398dab95927303b179250d644dd03 /src/clint.py | |
parent | bae02eb3968be1c9677283d030fbbe6dd02cb180 (diff) | |
parent | d651710de1e5627d602d9ca05a902e198d031571 (diff) | |
download | rneovim-35ec60f73a5d9f1ad9393bb1f645c624e67fdb26.tar.gz rneovim-35ec60f73a5d9f1ad9393bb1f645c624e67fdb26.tar.bz2 rneovim-35ec60f73a5d9f1ad9393bb1f645c624e67fdb26.zip |
Merge pull request #10648 from blueyed/autopep8
ci: py: flake8 fixes
Diffstat (limited to 'src/clint.py')
-rwxr-xr-x | src/clint.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/clint.py b/src/clint.py index 3994ffbb14..675b67ccef 100755 --- a/src/clint.py +++ b/src/clint.py @@ -2610,9 +2610,13 @@ def CheckBraces(filename, clean_lines, linenum, error): 'Brace starting function body must be placed on its own line') else: func_start_linenum = end_linenum + 1 - while not clean_lines.lines[func_start_linenum] == '{': - attrline = Match(r'^((?!# *define).*?)(?:FUNC_ATTR|FUNC_API|REAL_FATTR)_\w+(?:\(\d+(, \d+)*\))?', - clean_lines.lines[func_start_linenum]) + while not clean_lines.lines[func_start_linenum] == "{": + attrline = Match( + r'^((?!# *define).*?)' + r'(?:FUNC_ATTR|FUNC_API|REAL_FATTR)_\w+' + r'(?:\(\d+(, \d+)*\))?', + clean_lines.lines[func_start_linenum], + ) if attrline: if len(attrline.group(1)) != 2: error(filename, func_start_linenum, @@ -3182,7 +3186,8 @@ def CheckLanguage(filename, clean_lines, linenum, file_extension, r'|li_(?:next|prev|tv))\b', line) if match: error(filename, linenum, 'runtime/deprecated', 4, - 'Accessing list_T internals directly is prohibited (hint: see commit d46e37cb4c71)') + 'Accessing list_T internals directly is prohibited ' + '(hint: see commit d46e37cb4c71)') # Check for suspicious usage of "if" like # } if (a == b) { |