[Webkit-unassigned] [Bug 214536] New: cpp.py:3688: FutureWarning: Possible nested set at position 101
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jul 19 08:06:27 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=214536
Bug ID: 214536
Summary: cpp.py:3688: FutureWarning: Possible nested set at
position 101
Product: WebKit
Version: WebKit Nightly Build
Hardware: PC
OS: Linux
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mcatanzaro at gnome.org
$ check-webkit-style
/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/pep8.py:110: FutureWarning: Possible nested set at position 1
EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py:3688: FutureWarning: Possible nested set at position 101
check_identifier_name_in_declaration(filename, line_number, line, file_state, error)
/home/mcatanzaro/Projects/WebKit/Tools/Scripts/webkitpy/style/checkers/cpp.py:3688: FutureWarning: Possible nested set at position 73
check_identifier_name_in_declaration(filename, line_number, line, file_state, error)
Total errors found: 0 in 5 files
First warning is bug #214531. Let's fix the others here. Seems the warning was added in https://bugs.python.org/issue30349 and all we need to do is escape [ when used inside a set. That is, we have to change "[[" to "[\[". That was a little hard to figure out because the warning message points to the wrong line... the issue is on line 3780, not line 3688.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200719/02a9fec9/attachment-0001.htm>
More information about the webkit-unassigned
mailing list