summaryrefslogtreecommitdiff
path: root/doc/conf.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2015-03-08 17:15:54 +0100
committerGeorg Brandl <georg@python.org>2015-03-08 17:15:54 +0100
commit548a6dc22e4a3edff76413b6bdeedcf2b8c3f30c (patch)
treed41a62e8805c423e505d7f5c4d579aac13ae1511 /doc/conf.py
parent3047a23a6613d74705b6373b03e8f78b82e3c1ce (diff)
downloadsphinx-git-548a6dc22e4a3edff76413b6bdeedcf2b8c3f30c.tar.gz
final pep8 fixes; reactivate most warnings in flake8
Diffstat (limited to 'doc/conf.py')
-rw-r--r--doc/conf.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/conf.py b/doc/conf.py
index b83ba84da..22ab60972 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -38,10 +38,11 @@ epub_scheme = 'url'
epub_identifier = epub_publisher
epub_pre_files = [('index.html', 'Welcome')]
epub_post_files = [('install.html', 'Installing Sphinx'),
- ('develop.html', 'Sphinx development')]
+ ('develop.html', 'Sphinx development')]
epub_exclude_files = ['_static/opensearch.xml', '_static/doctools.js',
- '_static/jquery.js', '_static/searchtools.js', '_static/underscore.js',
- '_static/basic.css', 'search.html', '_static/websupport.js']
+ '_static/jquery.js', '_static/searchtools.js',
+ '_static/underscore.js', '_static/basic.css',
+ 'search.html', '_static/websupport.js']
epub_fix_images = False
epub_max_image_width = 0
epub_show_urls = 'inline'
@@ -93,11 +94,11 @@ gettext_compact = False
# -- Extension interface -------------------------------------------------------
-from sphinx import addnodes
-
+from sphinx import addnodes # noqa
event_sig_re = re.compile(r'([a-zA-Z-]+)\s*\((.*)\)')
+
def parse_event(env, sig, signode):
m = event_sig_re.match(sig)
if not m: