diff options
| author | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-11 21:23:13 +0200 |
|---|---|---|
| committer | Sviatoslav Sydorenko <wk@sydorenko.org.ua> | 2017-03-11 21:24:40 +0200 |
| commit | 0e8f3f9ce9f3eda37b7ac096243bd523ba871840 (patch) | |
| tree | cd8021be24e6e256e1593ea976b8237acc6a1c37 /docs | |
| parent | 59c3b8647996700ef235744856c4fb7fc0ebbe97 (diff) | |
| download | cherrypy-git-0e8f3f9ce9f3eda37b7ac096243bd523ba871840.tar.gz | |
PEP8fy codebase: eliminated E305 flake8 error
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/conf.py | 4 | ||||
| -rw-r--r-- | docs/util/convert-trac.py | 3 | ||||
| -rw-r--r-- | docs/util/test-doc.py | 1 |
3 files changed, 6 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py index a096da3e..461be904 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ def try_import(mod_name): except ImportError: pass -sphinx_rtd_theme = try_import('sphinx_rtd_theme') +sphinx_rtd_theme = try_import('sphinx_rtd_theme') # noqa: E305 # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -268,7 +268,7 @@ def mock_pywin32(): ] for mod_name in MOCK_MODULES: sys.modules[mod_name] = mock.MagicMock() -mock_pywin32() +mock_pywin32() # noqa: E305 link_files = { '../CHANGES.rst': dict( diff --git a/docs/util/convert-trac.py b/docs/util/convert-trac.py index 9ddd57f4..b7191a41 100644 --- a/docs/util/convert-trac.py +++ b/docs/util/convert-trac.py @@ -46,6 +46,7 @@ def replace_wiki_link(matcher): **matcher.groupdict() ) + # character array indexed by level for characters heading_characters = [None, '*', '=', '-', '^'] @@ -102,6 +103,7 @@ def remove_2x_compat_notes(matcher): r'\{\{\{\n#!html\n<h2(.|\n)*' return '' + replacements = [remove_2x_compat_notes] + \ [func for name, func in globals().items() if name.startswith('replace_')] @@ -133,5 +135,6 @@ def handle_command_line(): get_options() convert_file() + if __name__ == '__main__': handle_command_line() diff --git a/docs/util/test-doc.py b/docs/util/test-doc.py index a067a19e..0be518e0 100644 --- a/docs/util/test-doc.py +++ b/docs/util/test-doc.py @@ -12,6 +12,7 @@ def print_with_line_numbers(block): number += 1 print(number, line.rstrip()) + target_class_spec = sys.argv[1] import cherrypy # noqa target_class = eval(target_class_spec) |
