Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 314853 Details for
Bug 459857
epydoc --graph option failing because no GIF support in Graphviz (broken pipe)
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Replace hard-coded 'gif' type with hard-coded 'png' type in Epydoc
epydoc-gif2png.patch (text/plain), 2.92 KB, created by
Risto Kankkunen
on 2008-08-23 03:08:51 UTC
(
hide
)
Description:
Replace hard-coded 'gif' type with hard-coded 'png' type in Epydoc
Filename:
MIME Type:
Creator:
Risto Kankkunen
Created:
2008-08-23 03:08:51 UTC
Size:
2.92 KB
patch
obsolete
>--- /usr/lib/python2.5/site-packages/epydoc/docwriter/dotgraph.py.orig 2008-01-28 20:15:33.000000000 +0200 >+++ /usr/lib/python2.5/site-packages/epydoc/docwriter/dotgraph.py 2008-08-21 19:50:00.000000000 +0300 >@@ -140,7 +140,7 @@ > # the cmapx with a single call to dot. Otherwise, we need to > # run dot twice. > if get_dot_version() > [1,8,10]: >- cmapx = self._run_dot('-Tgif', '-o%s' % image_file, '-Tcmapx') >+ cmapx = self._run_dot('-Tpng', '-o%s' % image_file, '-Tcmapx') > if cmapx is None: return '' # failed to render > else: > if not self.write(image_file): >@@ -220,7 +220,7 @@ > if url: attribs['href'] = url > else: del attribs['href'] > >- def write(self, filename, language='gif'): >+ def write(self, filename, language='png'): > """ > Render the graph using the output format `language`, and write > the result to `filename`. >@@ -234,7 +234,7 @@ > result = result.decode('utf-8') > return (result is not None) > >- def render(self, language='gif'): >+ def render(self, language='png'): > """ > Use the ``dot`` command to render this graph, using the output > format `language`. Return the result as a string, or ``None`` >--- /usr/lib/python2.5/site-packages/epydoc/docwriter/html.py.orig 2008-01-29 14:43:04.000000000 +0200 >+++ /usr/lib/python2.5/site-packages/epydoc/docwriter/html.py 2008-08-21 19:50:27.000000000 +0300 >@@ -1627,7 +1627,7 @@ > def render_graph(self, graph): > if graph is None: return '' > graph.caption = graph.title = None >- image_url = '%s.gif' % graph.uid >+ image_url = '%s.png' % graph.uid > image_file = os.path.join(self._directory, image_url) > return graph.to_html(image_file, image_url) > >--- /usr/lib/python2.5/site-packages/epydoc/markup/epytext.py.orig 2007-09-26 07:45:35.000000000 +0300 >+++ /usr/lib/python2.5/site-packages/epydoc/markup/epytext.py 2008-08-21 19:49:08.000000000 +0300 >@@ -1878,7 +1878,7 @@ > docindex, context) > if not graph: return '' > # Write the graph. >- image_url = '%s.gif' % graph.uid >+ image_url = '%s.png' % graph.uid > image_file = os.path.join(directory, image_url) > return graph.to_html(image_file, image_url) > else: >--- /usr/lib/python2.5/site-packages/epydoc/markup/restructuredtext.py.orig 2008-01-28 20:15:33.000000000 +0200 >+++ /usr/lib/python2.5/site-packages/epydoc/markup/restructuredtext.py 2008-08-21 19:48:46.000000000 +0300 >@@ -663,7 +663,7 @@ > if graph is None: return > > # Write the graph. >- image_url = '%s.gif' % graph.uid >+ image_url = '%s.png' % graph.uid > image_file = os.path.join(self._directory, image_url) > self.body.append(graph.to_html(image_file, image_url)) > raise SkipNode()
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 459857
:
314853
|
323805