mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-30 02:46:52 +00:00
Utilize generator expression instead of list comprehension
This commit is contained in:
parent
12fab2f8ad
commit
d2e873fa9e
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ def get_parser():
|
|||
extensions registered and options set. This wraps ``pep8.get_parser``.
|
||||
"""
|
||||
(extensions, parser_hooks, options_hooks, ignored) = _register_extensions()
|
||||
details = ', '.join(['%s: %s' % ext for ext in extensions])
|
||||
details = ', '.join('%s: %s' % ext for ext in extensions)
|
||||
python_version = get_python_version()
|
||||
parser = pep8.get_parser('flake8', '%s (%s) %s' % (
|
||||
__version__, details, python_version
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue