Blame SOURCES/grpc-1.26.0-python-SyntaxWarning.patch
|
rdobuilder |
dca260 |
Backport upstream commit 9e0b427893b65b220faf8a31a6afdc67f6f41364 “Use != with literals”
|
|
rdobuilder |
dca260 |
|
|
rdobuilder |
dca260 |
diff -Naur grpc-1.26.0-original/src/python/grpcio/commands.py grpc-1.26.0/src/python/grpcio/commands.py
|
|
rdobuilder |
dca260 |
--- grpc-1.26.0-original/src/python/grpcio/commands.py 2019-12-17 20:29:27.000000000 -0500
|
|
rdobuilder |
dca260 |
+++ grpc-1.26.0/src/python/grpcio/commands.py 2021-01-28 12:51:33.635142522 -0500
|
|
rdobuilder |
dca260 |
@@ -99,7 +99,7 @@
|
|
rdobuilder |
dca260 |
target_dir = os.path.join(GRPC_STEM, 'doc', 'build')
|
|
rdobuilder |
dca260 |
exit_code = sphinx.cmd.build.build_main(
|
|
rdobuilder |
dca260 |
['-b', 'html', '-W', '--keep-going', source_dir, target_dir])
|
|
rdobuilder |
dca260 |
- if exit_code is not 0:
|
|
rdobuilder |
dca260 |
+ if exit_code:
|
|
rdobuilder |
dca260 |
raise CommandError(
|
|
rdobuilder |
dca260 |
"Documentation generation has warnings or errors")
|
|
rdobuilder |
dca260 |
|