diff options
-rw-r--r-- | _nodes.py | 6 | ||||
-rw-r--r-- | _nodes_ast.py | 2 | ||||
-rw-r--r-- | _nodes_compiler.py | 2 | ||||
-rw-r--r-- | infutils.py | 4 | ||||
-rw-r--r-- | lookup.py | 4 | ||||
-rw-r--r-- | node_classes.py | 2 |
6 files changed, 10 insertions, 10 deletions
@@ -51,7 +51,7 @@ ALL_NODES = STMT_NODES + ( # Node ###################################################################### -class NodeNG(Proxy_): +class NodeNG(BaseClass): """/!\ this class should not be used directly /!\ It is used as method and attribute container, and updates the original class from the compiler.ast / _ast module using its dictionary @@ -284,7 +284,7 @@ def _repr_tree(node, result, indent='', _done=None): # in "nodes.py" has to work *both* for old-style and new-style classes, # but we need the StmtMixIn for scoped nodes -class StmtMixIn(Proxy_): +class StmtMixIn(BaseClass): """StmtMixIn used only for a adding a few attributes""" is_statement = True @@ -311,7 +311,7 @@ class StmtMixIn(Proxy_): return stmts[index -1] -class BlockRangeMixIn(Proxy_): +class BlockRangeMixIn(BaseClass): """override block range """ def set_line_info(self, lastchild): self.fromlineno = self.lineno diff --git a/_nodes_ast.py b/_nodes_ast.py index 2b5e378f..2818faeb 100644 --- a/_nodes_ast.py +++ b/_nodes_ast.py @@ -77,7 +77,7 @@ from _ast import ( from logilab.astng.utils import ASTVisitor -Proxy_ = object +BaseClass = object _BIN_OP_CLASSES = {_Add: '+', _BitAnd: '&', diff --git a/_nodes_compiler.py b/_nodes_compiler.py index d83ff61d..4a8ae66f 100644 --- a/_nodes_compiler.py +++ b/_nodes_compiler.py @@ -93,7 +93,7 @@ From.level = 0 # will be overiden by instance attribute with py>=2.5 from logilab.astng.utils import ASTVisitor from logilab.astng._exceptions import NodeRemoved, ASTNGError -class Proxy_: pass +class BaseClass: pass def native_repr_tree(node, indent='', _done=None): diff --git a/infutils.py b/infutils.py index 55ba0e62..898228ae 100644 --- a/infutils.py +++ b/infutils.py @@ -25,10 +25,10 @@ __doctype__ = "restructuredtext en" from logilab.common.compat import chain, imap from logilab.astng._exceptions import InferenceError, NotFoundError, UnresolvableName -from logilab.astng._nodes import Proxy_, List, Tuple, Function, If, TryExcept +from logilab.astng._nodes import BaseClass, List, Tuple, Function, If, TryExcept -class Proxy(Proxy_): +class Proxy(BaseClass): """a simple proxy object""" _proxied = None @@ -32,11 +32,11 @@ import __builtin__ from logilab.astng import MANAGER, NotFoundError from logilab.astng import _nodes as nodes -from logilab.astng._nodes import Proxy_, NodeNG +from logilab.astng._nodes import BaseClass, NodeNG from logilab.astng.infutils import are_exclusive, copy_context, _infer_stmts -class LookupMixIn(Proxy_): +class LookupMixIn(BaseClass): """Mixin looking up a name in the right scope """ diff --git a/node_classes.py b/node_classes.py index 619eca1e..9090d162 100644 --- a/node_classes.py +++ b/node_classes.py @@ -193,7 +193,7 @@ class ForNG(BlockRangeMixIn, StmtMixIn, NodeNG): return self.iter.tolineno -class FromImportMixIn(Proxy_): +class FromImportMixIn(BaseClass): """MixIn for From and Import Nodes""" def do_import_module(node, modname): |