summaryrefslogtreecommitdiffstats
path: root/bin/scons-doc.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-05-20 19:06:28 (GMT)
committerSteven Knight <knight@baldmt.com>2010-05-20 19:06:28 (GMT)
commitde6b9527a9cd1a5385c414e984dcc47fcb21a71e (patch)
treeaafaf6e6bf3180dcd94896fec8b8eb2f71d93c03 /bin/scons-doc.py
parent4b3a032823160c0c4560a4644223691ee4f12fc7 (diff)
downloadSCons-de6b9527a9cd1a5385c414e984dcc47fcb21a71e.zip
SCons-de6b9527a9cd1a5385c414e984dcc47fcb21a71e.tar.gz
SCons-de6b9527a9cd1a5385c414e984dcc47fcb21a71e.tar.bz2
vert old-style classes in bin/* scripts to new-style classes.
Diffstat (limited to 'bin/scons-doc.py')
-rw-r--r--bin/scons-doc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/scons-doc.py b/bin/scons-doc.py
index e5b2986..684ece3 100644
--- a/bin/scons-doc.py
+++ b/bin/scons-doc.py
@@ -117,7 +117,7 @@ import TestCmd
sgmllib.entityref = re.compile('&([a-zA-Z][-_.a-zA-Z0-9]*)[^-_a-zA-Z0-9]')
# Classes for collecting different types of data we're interested in.
-class DataCollector:
+class DataCollector(object):
"""Generic class for collecting data between a start tag and end
tag. We subclass for various types of tags we care about."""
def __init__(self):
@@ -215,7 +215,7 @@ def my_RDirs(self, pathlist, orig_RDirs=orig_RDirs):
return [str(x).replace(os.sep, Sep) for x in orig_RDirs(self, pathlist)]
SCons.Node.FS.File.RDirs = my_RDirs
-class Curry:
+class Curry(object):
def __init__(self, fun, *args, **kwargs):
self.fun = fun
self.pending = args[:]
@@ -236,7 +236,7 @@ def Str(target, source, env, cmd=""):
result.append(' '.join(map(str, cmd)))
return '\\n'.join(result)
-class ToolSurrogate:
+class ToolSurrogate(object):
def __init__(self, tool, variable, func, varlist):
self.tool = tool
if not isinstance(variable, list):