浏览代码

fix logical inversion in the semantics of detect_cython()

Antoine Beaupré 10 年之前
父节点
当前提交
ff483fe485
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      borg/helpers.py

+ 2 - 0
borg/helpers.py

@@ -28,6 +28,8 @@ def detect_cython():
     we simply check an environment variable (``BORG_CYTHON_DISABLE``)
     we simply check an environment variable (``BORG_CYTHON_DISABLE``)
     which, when set (to anything) will disable includes of Cython
     which, when set (to anything) will disable includes of Cython
     libraries in key places to enable usage docs to be built.
     libraries in key places to enable usage docs to be built.
+
+    :returns: True if Cython is available, False otherwise.
     """
     """
     return not os.environ.get('BORG_CYTHON_DISABLE')
     return not os.environ.get('BORG_CYTHON_DISABLE')