Use != with literals

pull/24271/head
Lidi Zheng 4 years ago
parent 419fc6394c
commit 9e0b427893
  1. 2
      src/python/grpcio/commands.py

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

Loading…
Cancel
Save