Skip to content

Commit

Permalink
doc: Resolve pep8 warnings in conf.py
Browse files Browse the repository at this point in the history
flake8 doesn't like us redefining variables in loops.

Signed-off-by: Stephen Finucane <[email protected]>
Reported-by: Bhanuprakash Bodireddy <[email protected]>
Fixes: f15010f ("doc: Reduce duplication in 'man_pages'")
Acked-by: Bhanuprakash Bodireddy <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
stephenfin authored and blp committed May 19, 2017
1 parent 0972b49 commit 56cb734
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,6 @@

# Generate list of (path, name, description, [author, ...], section)
man_pages = [
('ref/%s' % filename, filename.split('.', 1)[0],
description, [author], filename.split('.', 1)[1])
for filename, description in _man_pages]
('ref/%s' % file_name, file_name.split('.', 1)[0],
description, [author], file_name.split('.', 1)[1])
for file_name, description in _man_pages]

0 comments on commit 56cb734

Please sign in to comment.