From 61567bad1ef4d78e8c362b571576e066a7138087 Mon Sep 17 00:00:00 2001 From: lrqrun Date: Wed, 29 Aug 2012 19:06:36 +0800 Subject: [PATCH] Fix PEP8 issues. Fix some pep8 issues in doc/source/conf.py make the code looks pretty. Change-Id: I44f8152de76ae217d1dd81c9c0c1b1e075ec8792 --- doc/source/conf.py | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 2e295e7..d7afad5 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,14 +1,15 @@ # -*- coding: utf-8 -*- # -import sys, os +import os +import sys project = 'python-glanceclient' -# -- General configuration ----------------------------------------------------- +# -- General configuration ---------------------------------------------------- -# Add any Sphinx extension module names here, as strings. They can be extensions -# coming with Sphinx (named 'sphinx.ext.*') or your custom ones. +# Add any Sphinx extension module names here, as strings. They can be +# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx'] # autodoc generation is a bit aggressive and a nuisance when doing heavy @@ -37,7 +38,7 @@ add_module_names = True # The name of the Pygments (syntax highlighting) style to use. pygments_style = 'sphinx' -# -- Options for HTML output --------------------------------------------------- +# -- Options for HTML output -------------------------------------------------- # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. @@ -48,12 +49,16 @@ htmlhelp_basename = '%sdoc' % project # Grouping the document tree into LaTeX files. List of tuples -# (source start file, target name, title, author, documentclass [howto/manual]). +# (source start file, target name, title, author, documentclass +# [howto/manual]). latex_documents = [ - ('index', - '%s.tex' % project, - u'%s Documentation' % project, - u'OpenStack LLC', 'manual'), + ( + 'index', + '%s.tex' % project, + u'%s Documentation' % project, + u'OpenStack LLC', + 'manual' + ), ] # Example configuration for intersphinx: refer to the Python standard library.