diff options
author | Mark Probst <mark.probst@gmail.com> | 2010-08-20 18:57:28 +0400 |
---|---|---|
committer | Mark Probst <mark.probst@gmail.com> | 2010-08-20 18:57:28 +0400 |
commit | 00233209ea499c894d041a0aa0691a96d82540fe (patch) | |
tree | 29833f834b45269ba05477a9cb2e8311a510eaad /scripts | |
parent | 42bb87da50c5a2775f903968d213dd64b494fe7e (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-x | scripts/mono-heapviz | 4 |
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') |