[scripts] Don't use saxutils in mono-heapviz.
authorMark Probst <mark.probst@gmail.com>
Fri, 20 Aug 2010 14:57:28 +0000 (16:57 +0200)
committerMark Probst <mark.probst@gmail.com>
Fri, 20 Aug 2010 14:57:28 +0000 (16:57 +0200)
Some Pythons don't have saxutils.DefaultHandler, so
don't use it.

scripts/mono-heapviz

index 0daa98351a81b9d4af677b939aabf629380637d5..fe13da6c7f8fe509372c6309ed6b97191966dbf0 100755 (executable)
@@ -8,7 +8,7 @@
 from __future__ import print_function
 import sys, os
 import Image, ImageDraw
-from xml.sax import ContentHandler, saxutils, make_parser
+from xml.sax import ContentHandler, make_parser
 from xml.sax.handler import feature_namespaces
 from optparse import OptionParser
 
@@ -127,7 +127,7 @@ class LargeSectionHandler (SectionHandler):
     def header (self):
         return self.kind + ' section'
 
-class DocHandler (saxutils.DefaultHandler):
+class DocHandler (ContentHandler):
     def start (self):
         self.collection_index = 0
         self.index_file = open ('index.html', 'w')