diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2014-09-19 19:10:09 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2014-09-19 19:10:14 +0100 |
commit | 30a0f3c9ed9310635914225aec6995c5b687614e (patch) | |
tree | 7c6d10ca5458a08194260a300d08590d801fe1b4 /docs/source/conf.py | |
parent | d0b8e17873328adbd7ac767a875a2a80fa7c5591 (diff) | |
download | deluge-30a0f3c9ed9310635914225aec6995c5b687614e.tar.gz deluge-30a0f3c9ed9310635914225aec6995c5b687614e.tar.bz2 deluge-30a0f3c9ed9310635914225aec6995c5b687614e.zip |
Flake8 pass of entire codebase
* Use the inline '# NOQA' to supress N802 lower-case warnings
Diffstat (limited to 'docs/source/conf.py')
-rw-r--r-- | docs/source/conf.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/docs/source/conf.py b/docs/source/conf.py index 9af04754e..dbe900c47 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -10,8 +10,8 @@ # All configuration values have a default value; values that are commented out # serve to show the default value. -import sys, os -import deluge.common +import os +import sys from version import get_version from datetime import date @@ -20,6 +20,7 @@ from datetime import date # absolute, like shown here. sys.path.append(os.path.abspath(os.path.dirname(__file__ + '../../'))) + class Mock(object): __all__ = [] @@ -35,9 +36,9 @@ class Mock(object): if name in ('__file__', '__path__'): return '/dev/null' elif name[0] == name[0].upper(): - mockType = type(name, (), {}) - mockType.__module__ = __name__ - return mockType + mock_type = type(name, (), {}) + mock_type.__module__ = __name__ + return mock_type else: return Mock() @@ -193,8 +194,8 @@ htmlhelp_basename = 'delugedoc' # Grouping the document tree into LaTeX files. List of tuples # (source start file, target name, title, author, document class [howto/manual]). latex_documents = [ - ('index', 'deluge.tex', 'deluge Documentation', - 'Deluge Team', 'manual'), + ('index', 'deluge.tex', 'deluge Documentation', + 'Deluge Team', 'manual'), ] # The name of an image file (relative to this directory) to place at the top of |