Skip to content

Commit 777792b

Browse files
authored
Merge pull request grpc#24271 from lidizheng/tiny-fix-in-commands
Use != with literals in commands.py
2 parents 537467e + 9e0b427 commit 777792b

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)