summaryrefslogtreecommitdiff
path: root/tools/quicktest.py
diff options
context:
space:
mode:
authormilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-01-29 16:28:17 +0000
committermilde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2022-01-29 16:28:17 +0000
commit46bf7a677077d072eb1a4bf5e645480a32a38a0c (patch)
tree83abd7b49159d0593946857438ea85b034b02b05 /tools/quicktest.py
parentfd435a7864043299f5130ca6bcc3006080951651 (diff)
downloaddocutils-46bf7a677077d072eb1a4bf5e645480a32a38a0c.tar.gz
Fix code indentation
Check conformance to our coding policies with flake8. Fix the following problems: E111 indentation is not a multiple of four E114 indentation is not a multiple of four (comment) E115 expected an indented block (comment) E116 unexpected indentation (comment) E117 over-indented E121 continuation line under-indented for hanging indent E122 continuation line missing indentation or outdented E124 closing bracked does not match visual indentaion E127 continuation line over-indented for visual indent E128 continuation line under-indented for visual indent E131 continuation line unaligned for hanging indent git-svn-id: https://svn.code.sf.net/p/docutils/code/trunk/docutils@8994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'tools/quicktest.py')
-rwxr-xr-xtools/quicktest.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/quicktest.py b/tools/quicktest.py
index 5294cc9ce..3dd85d3f9 100755
--- a/tools/quicktest.py
+++ b/tools/quicktest.py
@@ -76,10 +76,10 @@ def _rawxml(input, document, optargs):
def _styledxml(input, document, optargs):
docnode = document.asdom().childNodes[0]
- return '%s\n%s\n%s' % (
- '<?xml version="1.0" encoding="ISO-8859-1"?>',
- '<?xml-stylesheet type="text/xsl" href="%s"?>'
- % optargs['styledxml'], docnode.toxml())
+ return '\n'.join(('<?xml version="1.0" encoding="ISO-8859-1"?>',
+ '<?xml-stylesheet type="text/xsl" href="%s"?>'
+ % optargs['styledxml'],
+ docnode.toxml()))
def _prettyxml(input, document, optargs):
return document.asdom().toprettyxml(' ', '\n')
@@ -112,8 +112,7 @@ _outputFormatters = {
'styledxml': _styledxml,
'xml': _prettyxml,
'pretty' : _pretty,
- 'test': _test
- }
+ 'test': _test}
def format(outputFormat, input, document, optargs):
formatter = _outputFormatters[outputFormat]