Fix F812 PEP8 error

One file was redefining a variable, thus exposing this PEP8 error:

    F812 list comprehension redefines 'n' from line 1868

This fixes it and enables the check in tox.ini.

Change-Id: Ifa9a2365160db1b8ec80b274f3458cea6bd1f653
This commit is contained in:
David Shrewsbury 2014-10-13 10:31:16 -04:00
parent 484102119a
commit b1f1252929
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ commands = {posargs}
[flake8]
# E711: ignored because it is normal to use "column == None" in sqlalchemy
# TODO(yuriyz): Analyze or fix the warnings blacklisted below
ignore = E12,E111,E113,E131,E265,E711,F812
ignore = E12,E111,E113,E131,E265,E711
exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools,*ironic/nova*
[hacking]