]> git.ipfire.org Git - thirdparty/libvirt.git/commit
python: sanitize spaces either side of operators
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 24 Sep 2019 15:47:02 +0000 (16:47 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 11 Nov 2019 14:24:19 +0000 (14:24 +0000)
commit43d29cb40bcc246a6792353353275d48104aeb89
tree93dac1c83b30ce916f960f5d773f3c6dc0b2609c
parentbc59247df9562e1bd51c3776c2487b4f122769e6
python: sanitize spaces either side of operators

There should be a single space either side of operators. Inline
comments should have two spaces before the '#'

src/hyperv/hyperv_wmi_generator.py:130:45: E261 at least two spaces before inline comment
            source += '    { "", "", 0 },\n' # null terminated
                                            ^
src/esx/esx_vi_generator.py:417:25: E221 multiple spaces before operator
    FEATURE__DESERIALIZE  = (1 << 6)
                        ^
tests/cputestdata/cpu-cpuid.py:187:78: E225 missing whitespace around operator
                f.write("  <msr index='0x%x' edx='0x%08x' eax='0x%08x'/>\n" %(
                                                                             ^
docs/apibuild.py:524:47: E226 missing whitespace around arithmetic operator
                            self.line = line[i+2:]
                                              ^
...more...

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
build-aux/syntax-check.mk
docs/apibuild.py
src/esx/esx_vi_generator.py
src/hyperv/hyperv_wmi_generator.py
tests/cputestdata/cpu-cpuid.py