From 00233209ea499c894d041a0aa0691a96d82540fe Mon Sep 17 00:00:00 2001 From: Mark Probst Date: Fri, 20 Aug 2010 16:57:28 +0200 Subject: [PATCH] [scripts] Don't use saxutils in mono-heapviz. Some Pythons don't have saxutils.DefaultHandler, so don't use it. --- scripts/mono-heapviz | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/mono-heapviz b/scripts/mono-heapviz index 0daa98351a8..fe13da6c7f8 100755 --- a/scripts/mono-heapviz +++ b/scripts/mono-heapviz @@ -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') -- 2.25.1