docs/apibuild.py:2436:65: F821 undefined name 'first_letter'
chunks.append(["chunk%s" % (chunk - 1), first_letter, letter])
^
src/hyperv/hyperv_wmi_generator.py:415:57: F821 undefined name 'number'
report_error("line %d: invalid block header" % (number))
^
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
FLAKE8_BLANK_LINES = E301,E302,E303,E305
FLAKE8_LINE_LENGTH = E501
FLAKE8_STATEMENTS = E722,E741
-FLAKE8_ERRORS = F821
FLAKE8_WARNINGS = W504,W605
FLAKE8_IGNORE = $(FLAKE8_INDENTATION),$\
$(FLAKE8_BLANK_LINES),$\
$(FLAKE8_LINE_LENGTH),$\
$(FLAKE8_STATEMENTS),$\
- $(FLAKE8_ERRORS),$\
$(FLAKE8_WARNINGS) \
$(NULL)
count = 0
chunk = 0
chunks = []
+ first_letter = None
for id in typ:
if len(index[id]) > 30:
continue
-def parse_class(block):
+def parse_class(block, number):
# expected format: class <name>
header_items = block[0][1].split()
if block is not None:
if line == "end":
if block[0][1].startswith("class"):
- parse_class(block)
+ parse_class(block, number)
block = None
else: