summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Node
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-05-16 14:44:28 (GMT)
committerSteven Knight <knight@baldmt.com>2010-05-16 14:44:28 (GMT)
commit31d33033b32826914dd32fde0e52a7edf8d8720b (patch)
tree65feb1bbbea01ea43a382c2f11d2672ed7fe105b /src/engine/SCons/Node
parentdd1b7116ad4be5ef6ff8cf76ed227ad36003654b (diff)
downloadSCons-31d33033b32826914dd32fde0e52a7edf8d8720b.zip
SCons-31d33033b32826914dd32fde0e52a7edf8d8720b.tar.gz
SCons-31d33033b32826914dd32fde0e52a7edf8d8720b.tar.bz2
Commit old-style classes in Node/__init__.py to new-style classes.
Fix a ripple-effect in Script/Main.py by using obj.__class__.__name_ to, uh, fetch the name of a class.
Diffstat (limited to 'src/engine/SCons/Node')
-rw-r--r--src/engine/SCons/Node/__init__.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/engine/SCons/Node/__init__.py b/src/engine/SCons/Node/__init__.py
index 7847a9b..79ba730 100644
--- a/src/engine/SCons/Node/__init__.py
+++ b/src/engine/SCons/Node/__init__.py
@@ -97,7 +97,7 @@ Annotate = do_nothing
# Classes for signature info for Nodes.
-class NodeInfoBase:
+class NodeInfoBase(object):
"""
The generic base class for signature information for a Node.
@@ -147,7 +147,7 @@ class NodeInfoBase:
fields.append(f)
return fields
-class BuildInfoBase:
+class BuildInfoBase(object):
"""
The generic base class for build information for a Node.
@@ -169,7 +169,7 @@ class BuildInfoBase:
def merge(self, other):
self.__dict__.update(other.__dict__)
-class Node:
+class Node(object):
"""The base Node class, for entities that we know how to
build, or use to build other Nodes.
"""
@@ -179,7 +179,7 @@ class Node:
memoizer_counters = []
- class Attrs:
+ class Attrs(object):
pass
def __init__(self):
@@ -1260,7 +1260,7 @@ def get_children(node, parent): return node.children()
def ignore_cycle(node, stack): pass
def do_nothing(node, parent): pass
-class Walker:
+class Walker(object):
"""An iterator for walking a Node tree.
This is depth-first, children are visited before the parent.