diff options
| author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-20 14:59:25 +0200 |
|---|---|---|
| committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-20 14:59:25 +0200 |
| commit | 472d4e4f596028faec9fafab886564599d0877d3 (patch) | |
| tree | 59c6b7a955e8a219068b442e270f23c78301255a | |
| parent | 0aa622f8ec930c95e45455acae810e23f3c47105 (diff) | |
| download | cherrypy-git-472d4e4f596028faec9fafab886564599d0877d3.tar.gz | |
PEP257fy sphinx docs config
Added:
* module docstring
* try_import public function docstring
Adjusted:
* mock_pywin32 public function docstring
| -rw-r--r-- | docs/conf.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index 385bbc6b..621e0a17 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -1,3 +1,4 @@ +"""CherryPy sphinx doc configuration module.""" # -*- coding: utf-8 -*- # # CherryPy documentation build configuration file, created by @@ -22,6 +23,7 @@ assert sys.version_info > (3,), 'Python 3 required to build docs' def try_import(mod_name): + """Attempt importing module and suppress failure of doing this.""" try: return importlib.import_module(mod_name) except ImportError: @@ -251,8 +253,9 @@ latex_documents = [ def mock_pywin32(): - """ - Mock pywin32 so that Linux hosts, including ReadTheDocs, + """Mock pywin32 module. + + Resulting in Linux hosts, including ReadTheDocs, and other environments that don't have pywin32 can generate the docs properly including the PDF version. See: |
