From 53c0691c1494cea68d2ba2888ee3ef9fd64d67e4 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Tue, 29 Sep 2020 14:44:59 -0700 Subject: [PATCH] [PATCH] Use != with literals Gbp-Pq: Name 9e0b427893b65b220faf8a31a6afdc67f6f41364.patch --- src/python/grpcio/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.30.2