From 57a6da7774eadff3984f9a664e7d7a37df0803ae Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sat, 17 Feb 2018 09:10:55 +0000 Subject: [PATCH] Rename "I" to "line_prefix" to avoid flake8 E741 Signed-off-by: Niels Thykier --- scour/scour.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scour/scour.py b/scour/scour.py index 58ac7c4..ef9c7be 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -3205,17 +3205,17 @@ def serializeXML(element, options, ind=0, preserveWhitespace=False): outParts = [] indent = ind - I = '' + line_prefix = '' newline = '' if options.newlines: if options.indent_type == 'tab': - I = '\t' + line_prefix = '\t' elif options.indent_type == 'space': - I = ' ' - I *= options.indent_depth + line_prefix = ' ' + line_prefix *= options.indent_depth newline = '\n' - outParts.extend([(I * ind), '<', element.nodeName]) + outParts.extend([(line_prefix * ind), '<', element.nodeName]) # now serialize the other attributes known_attr = [ @@ -3303,7 +3303,7 @@ def serializeXML(element, options, ind=0, preserveWhitespace=False): pass if onNewLine: - outParts.append(I * ind) + outParts.append(line_prefix * ind) outParts.extend(['']) if indent > 0: outParts.append(newline)