mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
utils: Change parse_comma_separated_list() contract
This is the initial incision point to only accept `str` (or `None`) for parsing out comma/whitespace/regexp separated values.
This commit is contained in:
parent
9fbaf2d2ea
commit
9283f2f03f
3 changed files with 6 additions and 18 deletions
|
|
@ -25,13 +25,8 @@
|
|||
|
||||
"E121,W123,F904"
|
||||
"E121,\nW123,\nF804"
|
||||
"E121,\n\tW123,\n\tF804"
|
||||
|
||||
Or it will take a list of strings (potentially with whitespace) such as
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
[" E121\n", "\t\nW123 ", "\n\tF904\n "]
|
||||
" E121,\n\tW123,\n\tF804 "
|
||||
" E121\n\tW123 \n\tF804"
|
||||
|
||||
And converts it to a list that looks as follows
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue