]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: check if BUILD_DOC in os.environ
authorKefu Chai <kchai@redhat.com>
Thu, 3 Dec 2020 03:13:23 +0000 (11:13 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 5 Dec 2020 14:09:21 +0000 (22:09 +0800)
no need to check if it is in keys()

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/setup.py

index e7d33025ee958a07cad44becd6f76a836ed7650c..091f1ea2b15662d6253462110394a9a084a5569b 100755 (executable)
@@ -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