Blame SOURCES/epydoc-3.0.1-giftopng.patch

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