From c25e110983d836d210053f2392f84da29d92c5b3 Mon Sep 17 00:00:00 2001 From: Prodesire Date: Thu, 14 Dec 2017 20:29:33 +0800 Subject: [PATCH] add doc for platform --- docs/index.rst | 1 + docs/platform.rst | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 docs/platform.rst diff --git a/docs/index.rst b/docs/index.rst index bd2c750..6549762 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -31,6 +31,7 @@ Content misc network path + platform request set string diff --git a/docs/platform.rst b/docs/platform.rst new file mode 100644 index 0000000..f87fb8a --- /dev/null +++ b/docs/platform.rst @@ -0,0 +1,51 @@ +Platform +-------- + +.. py:data:: pydu.platform.WINDOWS + + Judge whether current platform is WINDOWS or not. + + +.. py:data:: pydu.platform.LINUX + + Judge whether current platform is LINUX or not. + + +.. py:data:: pydu.platform.POSIX + + Judge whether current platform is POSIX or not. + + +.. py:data:: pydu.platform.DARWIN + + Judge whether current platform is DARWIN or not. + + +.. py:data:: pydu.platform.SUNOS + + Judge whether current platform is SUNOS or not. + + +.. py:data:: pydu.platform.SMARTOS + + Judge whether current platform is SMARTOS or not. + + +.. py:data:: pydu.platform.FREEBSD + + Judge whether current platform is FREEBSD or not. + + +.. py:data:: pydu.platform.NETBSD + + Judge whether current platform is NETBSD or not. + + +.. py:data:: pydu.platform.OPENBSD + + Judge whether current platform is OPENBSD or not. + + +.. py:data:: pydu.platform.AIX + + Judge whether current platform is AIX or not.