Blame SOURCES/epydoc-3.0.1-giftopng.patch

d6ff77
diff -Naupr epydoc-3.0.1.orig/epydoc/docwriter/dotgraph.py epydoc-3.0.1/epydoc/docwriter/dotgraph.py
d6ff77
--- epydoc-3.0.1.orig/epydoc/docwriter/dotgraph.py	2008-01-28 19:15:33.000000000 +0100
d6ff77
+++ epydoc-3.0.1/epydoc/docwriter/dotgraph.py	2008-12-22 20:19:42.037246526 +0100
d6ff77
@@ -140,7 +140,7 @@ class DotGraph:
d6ff77
         # the cmapx with a single call to dot.  Otherwise, we need to
d6ff77
         # run dot twice.
d6ff77
         if get_dot_version() > [1,8,10]:
d6ff77
-            cmapx = self._run_dot('-Tgif', '-o%s' % image_file, '-Tcmapx')
d6ff77
+            cmapx = self._run_dot('-Tpng', '-o%s' % image_file, '-Tcmapx')
d6ff77
             if cmapx is None: return '' # failed to render
d6ff77
         else:
d6ff77
             if not self.write(image_file):
d6ff77
@@ -220,7 +220,7 @@ class DotGraph:
d6ff77
                 if url: attribs['href'] = url
d6ff77
                 else: del attribs['href']
d6ff77
                 
d6ff77
-    def write(self, filename, language='gif'):
d6ff77
+    def write(self, filename, language='png'):
d6ff77
         """
d6ff77
         Render the graph using the output format `language`, and write
d6ff77
         the result to `filename`.
d6ff77
@@ -234,7 +234,7 @@ class DotGraph:
d6ff77
             result = result.decode('utf-8')
d6ff77
         return (result is not None)
d6ff77
 
d6ff77
-    def render(self, language='gif'):
d6ff77
+    def render(self, language='png'):
d6ff77
         """
d6ff77
         Use the ``dot`` command to render this graph, using the output
d6ff77
         format `language`.  Return the result as a string, or ``None``
d6ff77
diff -Naupr epydoc-3.0.1.orig/epydoc/docwriter/html.py epydoc-3.0.1/epydoc/docwriter/html.py
d6ff77
--- epydoc-3.0.1.orig/epydoc/docwriter/html.py	2008-01-29 13:43:04.000000000 +0100
d6ff77
+++ epydoc-3.0.1/epydoc/docwriter/html.py	2008-12-22 20:19:56.195371915 +0100
d6ff77
@@ -1627,7 +1627,7 @@ class HTMLWriter:
d6ff77
     def render_graph(self, graph):
d6ff77
         if graph is None: return ''
d6ff77
         graph.caption = graph.title = None
d6ff77
-        image_url = '%s.gif' % graph.uid
d6ff77
+        image_url = '%s.png' % graph.uid
d6ff77
         image_file = os.path.join(self._directory, image_url)
d6ff77
         return graph.to_html(image_file, image_url)
d6ff77
     
d6ff77
diff -Naupr epydoc-3.0.1.orig/epydoc/markup/epytext.py epydoc-3.0.1/epydoc/markup/epytext.py
d6ff77
--- epydoc-3.0.1.orig/epydoc/markup/epytext.py	2007-09-26 06:45:35.000000000 +0200
d6ff77
+++ epydoc-3.0.1/epydoc/markup/epytext.py	2008-12-22 20:20:14.630371505 +0100
d6ff77
@@ -1878,7 +1878,7 @@ class ParsedEpytextDocstring(ParsedDocst
d6ff77
                                       docindex, context)
d6ff77
             if not graph: return ''
d6ff77
             # Write the graph.
d6ff77
-            image_url = '%s.gif' % graph.uid
d6ff77
+            image_url = '%s.png' % graph.uid
d6ff77
             image_file = os.path.join(directory, image_url)
d6ff77
             return graph.to_html(image_file, image_url)
d6ff77
         else:
d6ff77
diff -Naupr epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py epydoc-3.0.1/epydoc/markup/restructuredtext.py
d6ff77
--- epydoc-3.0.1.orig/epydoc/markup/restructuredtext.py	2008-01-28 19:15:33.000000000 +0100
d6ff77
+++ epydoc-3.0.1/epydoc/markup/restructuredtext.py	2008-12-22 20:20:23.679309245 +0100
d6ff77
@@ -663,7 +663,7 @@ class _EpydocHTMLTranslator(HTMLTranslat
d6ff77
         if graph is None: return
d6ff77
         
d6ff77
         # Write the graph.
d6ff77
-        image_url = '%s.gif' % graph.uid
d6ff77
+        image_url = '%s.png' % graph.uid
d6ff77
         image_file = os.path.join(self._directory, image_url)
d6ff77
         self.body.append(graph.to_html(image_file, image_url))
d6ff77
         raise SkipNode()