mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-07 14:43:01 -06:00
setup: Allow pylint -j0
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
135cf17072
commit
6710ca6969
4
setup.py
4
setup.py
@ -360,7 +360,7 @@ class CheckPylint(setuptools.Command):
|
||||
self.jobs = None
|
||||
|
||||
def finalize_options(self):
|
||||
if self.jobs:
|
||||
if self.jobs is not None:
|
||||
self.jobs = int(self.jobs)
|
||||
|
||||
def run(self):
|
||||
@ -414,7 +414,7 @@ class CheckPylint(setuptools.Command):
|
||||
"--rcfile", ".pylintrc",
|
||||
"--output-format=%s" % output_format,
|
||||
]
|
||||
if self.jobs:
|
||||
if self.jobs is not None:
|
||||
pylint_opts += ["--jobs=%d" % self.jobs]
|
||||
|
||||
pylint.lint.Run(lintfiles + pylint_opts)
|
||||
|
Loading…
Reference in New Issue
Block a user