diff options
| author | Ceridwen <ceridwenv@gmail.com> | 2016-01-09 19:06:34 -0500 |
|---|---|---|
| committer | Ceridwen <ceridwenv@gmail.com> | 2016-01-09 19:06:34 -0500 |
| commit | 4d22d97f3604465c1e40105b0d3e47185cbaf290 (patch) | |
| tree | 779c29b99f0efb5c51d72843cdabecb1db40907a /astroid/tree/node_classes.py | |
| parent | fb9a7380fd526bbd5ff49c473fd20fa82b234873 (diff) | |
| download | astroid-git-4d22d97f3604465c1e40105b0d3e47185cbaf290.tar.gz | |
Rename asspath to assign_ppath
Diffstat (limited to 'astroid/tree/node_classes.py')
| -rw-r--r-- | astroid/tree/node_classes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/astroid/tree/node_classes.py b/astroid/tree/node_classes.py index ed757632..4816fd2e 100644 --- a/astroid/tree/node_classes.py +++ b/astroid/tree/node_classes.py @@ -78,12 +78,12 @@ class Statement(base.NodeNG): class AssignedStmtsMixin(object): """Provide an `assigned_stmts` method to classes which inherits it.""" - def assigned_stmts(self, node=None, context=None, asspath=None): + def assigned_stmts(self, node=None, context=None, assign_path=None): """Responsible to return the assigned statement (e.g. not inferred) according to the assignment type. - The `asspath` parameter is used to record the lhs path of the original node. - For instance if we want assigned statements for 'c' in 'a, (b,c)', asspath + The `assign_path` parameter is used to record the lhs path of the original node. + For instance if we want assigned statements for 'c' in 'a, (b,c)', assign_path will be [1, 1] once arrived to the Assign node. The `context` parameter is the current inference context which should be given @@ -93,7 +93,7 @@ class AssignedStmtsMixin(object): # circular dependencies between these modules. return protocols.assigned_stmts(self, sys.modules[__name__], node=node, context=context, - asspath=asspath) + assign_path=assign_path) # Name classes |
