From: Lidi Zheng Date: Tue, 29 Sep 2020 21:44:59 +0000 (-0700) Subject: [PATCH] Use != with literals X-Git-Tag: archive/raspbian/1.30.2-4+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d0615c443fd703b62c8f6bf66345c3eef7a97641;p=grpc.git [PATCH] Use != with literals Gbp-Pq: Name 9e0b427893b65b220faf8a31a6afdc67f6f41364.patch --- diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py index b9106826..46b9bca8 100644 --- a/src/python/grpcio/commands.py +++ b/src/python/grpcio/commands.py @@ -99,7 +99,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")