From: Kefu Chai Date: Thu, 3 Dec 2020 03:13:23 +0000 (+0800) Subject: pybind/rados: check if BUILD_DOC in os.environ X-Git-Tag: v16.1.0~324^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=645a05067dd3bc2ee7bcec342696bc1f307640cc;p=ceph.git pybind/rados: check if BUILD_DOC in os.environ no need to check if it is in keys() Signed-off-by: Kefu Chai --- diff --git a/src/pybind/rados/setup.py b/src/pybind/rados/setup.py index e7d33025ee95..091f1ea2b156 100755 --- a/src/pybind/rados/setup.py +++ b/src/pybind/rados/setup.py @@ -132,7 +132,7 @@ def check_sanity(): shutil.rmtree(tmp_dir) -if 'BUILD_DOC' in os.environ.keys(): +if 'BUILD_DOC' in os.environ: pass elif check_sanity(): pass