Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Probst <mark.probst@gmail.com>2010-08-20 18:57:28 +0400
committerMark Probst <mark.probst@gmail.com>2010-08-20 18:57:28 +0400
commit00233209ea499c894d041a0aa0691a96d82540fe (patch)
tree29833f834b45269ba05477a9cb2e8311a510eaad /scripts
parent42bb87da50c5a2775f903968d213dd64b494fe7e (diff)
[scripts] Don't use saxutils in mono-heapviz.
Some Pythons don't have saxutils.DefaultHandler, so don't use it.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mono-heapviz4
1 files 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')