Skip to content

Commit 9e0b427

Browse files
committed
Use != with literals
1 parent 419fc63 commit 9e0b427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/python/grpcio/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def run(self):
101101
target_dir = os.path.join(GRPC_STEM, 'doc', 'build')
102102
exit_code = sphinx.cmd.build.build_main(
103103
['-b', 'html', '-W', '--keep-going', source_dir, target_dir])
104-
if exit_code is not 0:
104+
if exit_code != 0:
105105
raise CommandError(
106106
"Documentation generation has warnings or errors")
107107

0 commit comments

Comments
 (0)