diff options
author | Georg Brandl <georg@python.org> | 2015-03-08 17:03:00 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-03-08 17:03:00 +0100 |
commit | b5c2279e05b3f18b660b29c8bd0989fbb8a1582a (patch) | |
tree | bf4f1390758c6e807e7d816fe1f869a6ce7b7ea2 /sphinx/ext/graphviz.py | |
parent | ba9dcaac5120f58c3cc0bc455b4beceab3a4abd9 (diff) | |
download | sphinx-git-b5c2279e05b3f18b660b29c8bd0989fbb8a1582a.tar.gz |
ext: pep8 fixes
Diffstat (limited to 'sphinx/ext/graphviz.py')
-rw-r--r-- | sphinx/ext/graphviz.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sphinx/ext/graphviz.py b/sphinx/ext/graphviz.py index 320d70b09..56acf7fec 100644 --- a/sphinx/ext/graphviz.py +++ b/sphinx/ext/graphviz.py @@ -141,9 +141,8 @@ class GraphvizSimple(Directive): def render_dot(self, code, options, format, prefix='graphviz'): """Render graphviz code into a PNG or PDF output file.""" hashkey = (code + str(options) + - str(self.builder.config.graphviz_dot) + - str(self.builder.config.graphviz_dot_args) - ).encode('utf-8') + str(self.builder.config.graphviz_dot) + + str(self.builder.config.graphviz_dot_args)).encode('utf-8') fname = '%s-%s.%s' % (prefix, sha1(hashkey).hexdigest(), format) relfn = posixpath.join(self.builder.imgpath, fname) @@ -284,6 +283,7 @@ def render_dot_texinfo(self, node, code, options, prefix='graphviz'): self.body.append('@image{%s,,,[graphviz],png}\n' % fname[:-4]) raise nodes.SkipNode + def texinfo_visit_graphviz(self, node): render_dot_texinfo(self, node, node['code'], node['options']) |