Fix pep8 on python3.7
I was seeing: /home/will/code/rally-openstack/.tox/pep8/lib/python3.7/site-packages/pycodestyle.py:111: FutureWarning: Possible nested set at position 1 EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]') Traceback (most recent call last): File "/home/will/code/rally-openstack/tests/hacking/checks.py", line 86, in wrapper yield next(func(logical_line, physical_line, filename)) StopIteration This patch proposes to catch that exception. Change-Id: Iee183a1763e0d295748dbce7ed96a4c38146c3b4 Fixes-Bug: 1850191
This commit is contained in:
parent
bc54ed8ad8
commit
75f73ae44b
|
@ -83,8 +83,8 @@ def skip_ignored_lines(func):
|
|||
line = physical_line.strip()
|
||||
if not line or line.startswith("#") or line.endswith("# noqa"):
|
||||
return
|
||||
yield next(func(logical_line, physical_line, filename))
|
||||
|
||||
for value in func(logical_line, physical_line, filename):
|
||||
yield value
|
||||
return wrapper
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue