diff options
| author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-06-25 13:32:31 +0200 |
|---|---|---|
| committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-06-25 13:32:31 +0200 |
| commit | aa7197a8d577c82d7c0c9c52dc2ada247594e94e (patch) | |
| tree | 44a2fe2fec4bc266f8de6b2a6da1ba63914a49e4 /raw_building.py | |
| parent | 256f14f6c0c9cf1a1c84ae0b1fd038123fb41586 (diff) | |
| download | astroid-git-aa7197a8d577c82d7c0c9c52dc2ada247594e94e.tar.gz | |
d-t-w, use assertIsInstance
Diffstat (limited to 'raw_building.py')
| -rw-r--r-- | raw_building.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/raw_building.py b/raw_building.py index f2cf29b3..41c1e7fc 100644 --- a/raw_building.py +++ b/raw_building.py @@ -27,7 +27,7 @@ from inspect import getargspec from logilab.astng import nodes - + def _attach_local_node(parent, node, name): node.name = name # needed by add_local_node parent.add_local_node(node) @@ -43,7 +43,7 @@ def attach_dummy_node(node, name, object=_marker): _attach_local_node(node, enode, name) nodes.EmptyNode.has_underlying_object = lambda self: self.object is not _marker - + def attach_const_node(node, name, value): """create a Const node and register it in the locals of the given node with the specified name @@ -107,7 +107,7 @@ else: def register_arguments(func, args=None): """add given arguments to local - + args is a list that may contains nested lists (i.e. def func(a, (b, c, d)): ...) """ @@ -181,8 +181,8 @@ def _base_class_object_build(node, member, basenames, name=None): return klass -__all__ = ('register_arguments', 'build_module', - 'object_build_class', 'object_build_function', +__all__ = ('register_arguments', 'build_module', + 'object_build_class', 'object_build_function', 'object_build_datadescriptor', 'object_build_methoddescriptor', 'attach_dummy_node', 'attach_const_node', 'attach_import_node') |
