Merge pull request #24271 from lidizheng/tiny-fix-in-commands

Use != with literals in commands.py
pull/24280/head
Lidi Zheng 4 years ago committed by GitHub
commit 777792b652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/python/grpcio/commands.py

@ -101,7 +101,7 @@ class SphinxDocumentation(setuptools.Command):
target_dir = os.path.join(GRPC_STEM, 'doc', 'build')
exit_code = sphinx.cmd.build.build_main(
['-b', 'html', '-W', '--keep-going', source_dir, target_dir])
if exit_code is not 0:
if exit_code != 0:
raise CommandError(
"Documentation generation has warnings or errors")

Loading…
Cancel
Save