瀏覽代碼

simplify RTD env check

Antoine Beaupré 9 年之前
父節點
當前提交
7ccf6b32a6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      setup.py

+ 1 - 1
setup.py

@@ -16,7 +16,7 @@ if my_python < min_python:
     sys.exit(1)
 
 # Are we building on ReadTheDocs?
-on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
+on_rtd = os.environ.get('READTHEDOCS')
 
 # msgpack pure python data corruption was fixed in 0.4.6.
 # Also, we might use some rather recent API features.