diff options
| author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-29 16:28:17 +0000 |
|---|---|---|
| committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2022-01-29 16:28:17 +0000 |
| commit | d79d962ed7046a7fc6a53bdfe472d68f273f3b68 (patch) | |
| tree | 1f2d820f66283f8905b947ca14c734dcf26a4973 /docutils/tools/dev/unicode2rstsubs.py | |
| parent | fbf6ed81005614eb13e3db1c6c53f565cb22ef44 (diff) | |
| download | docutils-d79d962ed7046a7fc6a53bdfe472d68f273f3b68.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@8994 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/tools/dev/unicode2rstsubs.py')
| -rwxr-xr-x | docutils/tools/dev/unicode2rstsubs.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docutils/tools/dev/unicode2rstsubs.py b/docutils/tools/dev/unicode2rstsubs.py index 839ed870d..74ce0717d 100755 --- a/docutils/tools/dev/unicode2rstsubs.py +++ b/docutils/tools/dev/unicode2rstsubs.py @@ -132,9 +132,9 @@ class CharacterEntitySetExtractor: return entity = attributes['id'] assert (entity not in self.sets[set] - or self.sets[set][entity] == self.charid), \ - ('sets[%r][%r] == %r (!= %r)' - % (set, entity, self.sets[set][entity], self.charid)) + or self.sets[set][entity] == self.charid + ), ('sets[%r][%r] == %r (!= %r)' + % (set, entity, self.sets[set][entity], self.charid)) self.sets[set][entity] = self.charid def description_data(self, data): |
