Bug 1344854 - Enable flake8 rule F841: "local variable XXX is assigned to but never used". r=dexter

This commit is contained in:
Paavini Nanda 2017-03-14 15:34:42 +05:30
Родитель eab7725f67
Коммит ae4cd41b10
2 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -1,5 +1,5 @@
[flake8] [flake8]
# See http://pep8.readthedocs.io/en/latest/intro.html#configuration # See http://pep8.readthedocs.io/en/latest/intro.html#configuration
ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E502, E128, E501, E713, E111, E222, E201, E202, W602, E127, F841, W601 ignore = E121, E123, E126, E129, E133, E226, E241, E242, E704, W503, E402, E502, E128, E501, E713, E111, E222, E201, E202, W602, E127, W601
max-line-length = 99 max-line-length = 99
filename = *.py, +.lint filename = *.py, +.lint

Просмотреть файл

@ -65,7 +65,6 @@ def write_extra_table(events, output, string_table):
def write_common_event_table(events, output, string_table, extra_table): def write_common_event_table(events, output, string_table, extra_table):
table_name = "gCommonEventInfo" table_name = "gCommonEventInfo"
extra_count = 0
print("const CommonEventInfo %s[] = {" % table_name, file=output) print("const CommonEventInfo %s[] = {" % table_name, file=output)
for e, extras in zip(events, extra_table): for e, extras in zip(events, extra_table):